Skip to content

Commit

Permalink
Update protocols/kad/src/behaviour.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Max Inden <mail@max-inden.de>
  • Loading branch information
dignifiedquire and mxinden authored Nov 18, 2022
1 parent 5ecf9cb commit 055636e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/kad/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2572,7 +2572,7 @@ impl ProgressStep {

fn next(&self) -> Self {
assert!(!self.last);
let count = NonZeroUsize::new(self.count.get() + 1).expect("Not to exhaust usize space.");
let count = NonZeroUsize::new(self.count.get() + 1).expect("Adding 1 not to result in 0.");

Self { count, last: false }
}
Expand Down

0 comments on commit 055636e

Please sign in to comment.