mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-08-01 01:11:58 +00:00
Replace usage of deprecated bigint crate. (#1214)
This commit is contained in:
committed by
Pierre Krieger
parent
757e800117
commit
bcfb647e65
@@ -128,7 +128,7 @@ impl BucketIndex {
|
||||
let lower = usize::pow(2, rem);
|
||||
let upper = usize::pow(2, rem + 1);
|
||||
bytes[31 - quot] = rng.gen_range(lower, upper) as u8;
|
||||
Distance(bigint::U256::from(bytes))
|
||||
Distance(U256::from(bytes))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -477,7 +477,6 @@ where
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use bigint::U256;
|
||||
use super::*;
|
||||
use libp2p_core::PeerId;
|
||||
use quickcheck::*;
|
||||
|
Reference in New Issue
Block a user