mirror of
https://github.com/uutils/coreutils
synced 2024-11-17 10:18:11 +00:00
factor::Factors::add: Make the precondition check a debug_assert
This commit is contained in:
parent
33e18b4cd3
commit
f84d0f9398
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ impl Factors {
|
|||
}
|
||||
|
||||
fn add(&mut self, prime: u64, exp: u8) {
|
||||
assert!(exp > 0);
|
||||
debug_assert!(exp > 0);
|
||||
let n = *self.f.get(&prime).unwrap_or(&0);
|
||||
self.f.insert(prime, exp + n);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue