Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bounded-collections/src/bounded_btree_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ where
Ok(BoundedBTreeMap::<K, T, S>::unchecked_from(
self.0
.into_iter()
.map(|(k, v)| (f((&k, v)).map(|t| (k, t))))
.map(|(k, v)| f((&k, v)).map(|t| (k, t)))
.collect::<Result<BTreeMap<_, _>, _>>()?,
))
}
Expand Down
4 changes: 2 additions & 2 deletions uint/src/uint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -938,10 +938,10 @@ macro_rules! construct_uint {
(q, remainder)
}

// Returns the least number of words needed to represent the nonzero number
/// Returns the least number of words needed to represent a number with width `bits`.
fn words(bits: usize) -> usize {
debug_assert!(bits > 0);
1 + (bits - 1) / Self::WORD_BITS
bits.div_ceil(Self::WORD_BITS)
}

/// Returns a pair `(self / other, self % other)`.
Expand Down
1 change: 0 additions & 1 deletion uint/tests/uint_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
// except according to those terms.

use core::{convert::TryInto, str::FromStr, u64::MAX};
use crunchy::unroll;
use uint::{construct_uint, overflowing, FromDecStrErr};

construct_uint! {
Expand Down