Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborschneider committed Jan 28, 2025
1 parent 12cce7c commit 3586dd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bgpsim/src/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ where
}
}

/// Formatting a mapping
/// Formatting a sequence of sequences.
pub trait NetworkFormatterNestedSequence<'n, P, Q, Ospf>
where
P: Prefix,
Expand Down
5 changes: 1 addition & 4 deletions bgpsim/src/router/bgp_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -696,10 +696,7 @@ impl<P: Prefix> BgpProcess<P> {
fn process_rib_in_route(&self, mut entry: BgpRibEntry<P>) -> Option<BgpRibEntry<P>> {
// apply bgp_route_map_in
let neighbor = entry.from_id;
entry = match self.get_route_maps(neighbor, Incoming).apply(entry) {
Some(e) => e,
None => return None,
};
entry = self.get_route_maps(neighbor, Incoming).apply(entry)?;

let igp_cost = self
.igp_cost
Expand Down

0 comments on commit 3586dd3

Please sign in to comment.