From e4190fa725a123c5ed7a7ae7846d7460ba69d535 Mon Sep 17 00:00:00 2001 From: Luuk Hendriks Date: Fri, 22 Mar 2024 16:10:57 +0100 Subject: [PATCH] Clippy --- src/bgp/workshop/route.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bgp/workshop/route.rs b/src/bgp/workshop/route.rs index e19d9b3d..1168db44 100644 --- a/src/bgp/workshop/route.rs +++ b/src/bgp/workshop/route.rs @@ -325,7 +325,7 @@ impl WorkshopAttribute for crate::bgp::types::NextHop { use crate::bgp::nlri::afisafi::{AfiSafiNlri, AfiSafiParse}; -fn pdu_into_rws<'a, Octs, T, R>(pdu: &'a UpdateMessage) -> Vec +pub fn pdu_into_rws<'a, Octs, T, R>(pdu: &'a UpdateMessage) -> Vec where Octs: 'a + Octets = R>, R: Hash + Clone + Debug, @@ -348,7 +348,7 @@ where res } -fn pdu_into_typed_rws<'a, Octs, T, R, AFN>(pdu: &'a UpdateMessage) -> Vec +pub fn pdu_into_typed_rws<'a, Octs, T, R, AFN>(pdu: &'a UpdateMessage) -> Vec where Octs: 'a + Octets = R>, @@ -380,7 +380,7 @@ where -fn pdu_into_rws_iter<'a, Octs, T, R>(pdu: &'a UpdateMessage) +pub fn pdu_into_rws_iter<'a, Octs, T, R>(pdu: &'a UpdateMessage) -> impl Iterator + '_ where Octs: 'a + Octets = R>, @@ -400,7 +400,7 @@ where } -fn pdu_into_rws_basic_iter<'a, Octs, R>(pdu: &'a UpdateMessage) +pub fn pdu_into_rws_basic_iter<'a, Octs, R>(pdu: &'a UpdateMessage) -> impl Iterator> + '_ where Octs: 'a + Octets = R>, @@ -426,7 +426,7 @@ where use inetnum::addr::Prefix; use std::fmt; -use crate::bgp::nlri::afisafi::{AfiSafiType, Addpath, IsPrefix}; +use crate::bgp::nlri::afisafi::{AfiSafiType, IsPrefix}; use crate::bgp::types::PathId;