Skip to content

Commit 50a8a1c

Browse files
committed
Clippy gonna clip
1 parent 86d52fb commit 50a8a1c

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/bgp/message/open.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ pub struct OpenMessage<Octets> {
2929
/// ## Convenience methods
3030
///
3131
/// * [`my_asn()`][`OpenMessage::my_asn`]: returns the 32bit ASN if present,
32-
/// otherwise falls back to the conventional 16bit ASN (though represented as
33-
/// the 32bit [`inetnum::asn::Asn`][`Asn`]);
32+
/// otherwise falls back to the conventional 16bit ASN (though represented
33+
/// as the 32bit [`inetnum::asn::Asn`][`Asn`]);
3434
/// * [`multiprotocol_ids()`][`OpenMessage::multiprotocol_ids`]: returns an
35-
/// iterator over all the AFI/SAFI combinations listed as Capability in the
36-
/// Optional Parameters. If this yields an empty iterator, one can assume the
37-
/// default (IPv4/Unicast) can be used, but it is up to the user to handle as
38-
/// such.
35+
/// iterator over all the AFI/SAFI combinations listed as Capability in the
36+
/// Optional Parameters. If this yields an empty iterator, one can assume
37+
/// the default (IPv4/Unicast) can be used, but it is up to the user to
38+
/// handle as such.
3939
//
4040
// 0 1 2 3
4141
// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

src/bgp/message/update.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ impl<Octs: Octets> AsRef<[u8]> for UpdateMessage<Octs> {
9494
/// To accommodate for these hassles, the following methods are provided:
9595
///
9696
/// * [`nlris()`][`UpdateMessage::nlris`] and
97-
/// [`withdrawals()`][`UpdateMessage::withdrawals`],
98-
/// providing iterators over announced and withdrawn prefixes ;
97+
/// [`withdrawals()`][`UpdateMessage::withdrawals`],
98+
/// providing iterators over announced and withdrawn prefixes ;
9999
/// * [`next_hop()`][`UpdateMessage::next_hop`], returning the [`NextHop`] ;
100100
/// * [`all_communities()`][`UpdateMessage::all_communities`], returning an
101-
/// optional `Vec` containing all conventional, Extended and Large
102-
/// Communities, wrapped in the [`Community`] enum.
101+
/// optional `Vec` containing all conventional, Extended and Large
102+
/// Communities, wrapped in the [`Community`] enum.
103103
///
104104
/// For the mandatory path attributes, we have:
105105
///
@@ -1154,12 +1154,12 @@ impl Default for PduParseInfo {
11541154
/// and non AddPath enabled withdrawals, this struct holds booleans for all
11551155
/// three sections where AddPath PathIds might or might not occur:
11561156
///
1157-
/// * the conventional IPv4 Unicast sections in the PDU, which are either
1158-
/// both AddPath enabled or not, and,
1157+
/// * the conventional IPv4 Unicast sections in the PDU, which are either
1158+
/// both AddPath enabled or not, and,
11591159
///
11601160
/// * the MP_REACH and MP_UNREACH path attributes, which might carry NLRI for
1161-
/// different address families and (thus) might differ in being AddPath
1162-
/// enabled or not.
1161+
/// different address families and (thus) might differ in being AddPath
1162+
/// enabled or not.
11631163
#[derive(Copy, Clone, Default, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
11641164
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
11651165
#[cfg_attr(feature = "serde", derive(serde::Serialize))]

src/bgp/path_selection.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use super::{
1818
/// Comparing two `OrdRoute`s, wrapping two routes with different sets of path
1919
/// attributes, might still yield 'equal'. Instead, consider comparing on the
2020
/// `PaMap` and/or `Tiebreakerinfo` directly (or [`fn inner`]).
21-
#[derive(Copy, Clone, Debug, Hash)]
21+
#[derive(Copy, Clone, Debug)]
2222
pub struct OrdRoute<'a, OS> {
2323
pa_map: &'a PaMap,
2424
tiebreakers: TiebreakerInfo,

0 commit comments

Comments
 (0)