Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SelimV committed Oct 11, 2023
1 parent 96d2895 commit 39b78c0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/structure/sequence_number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ impl SequenceNumber {
}

pub const fn plus_1(&self) -> Self {
SequenceNumber( self.0 + 1 )
SequenceNumber(self.0 + 1)
}

pub fn next(&self) -> SequenceNumber {
self.plus_1()
}

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 {
Expand Down Expand Up @@ -95,7 +95,6 @@ impl From<SequenceNumber> for i64 {
}
}


// ---------------------------------------

#[derive(Clone, Copy, Debug)]
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 39b78c0

Please sign in to comment.