From 39b78c08cc90a44ac83f369f399f87e59824d347 Mon Sep 17 00:00:00 2001 From: SelimV Date: Wed, 11 Oct 2023 10:33:20 +0300 Subject: [PATCH] Fmt --- src/structure/sequence_number.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/structure/sequence_number.rs b/src/structure/sequence_number.rs index c4067ff1..43016b2d 100644 --- a/src/structure/sequence_number.rs +++ b/src/structure/sequence_number.rs @@ -45,7 +45,7 @@ impl SequenceNumber { } pub const fn plus_1(&self) -> Self { - SequenceNumber( self.0 + 1 ) + SequenceNumber(self.0 + 1) } pub fn next(&self) -> SequenceNumber { @@ -53,7 +53,7 @@ impl SequenceNumber { } pub fn from_high_low(high: i32, low: u32) -> Self { - Self( ((high as i64) << 32) + (low as i64) ) + Self(((high as i64) << 32) + (low as i64)) } pub fn high(&self) -> i32 { @@ -95,7 +95,6 @@ impl From for i64 { } } - // --------------------------------------- #[derive(Clone, Copy, Debug)] @@ -420,7 +419,7 @@ where end }; // sanity ok. Now do the actual work. - let num_bits = i64::from( end - base + N::from(1) ); + let num_bits = i64::from(end - base + N::from(1)); let mut sns = Self::new(base, num_bits as u32); for s in set.iter().filter(|s| base <= **s && **s <= end) { sns.insert(*s);