Skip to content

Commit e4e4840

Browse files
committed
clippy fixes
1 parent 110d778 commit e4e4840

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/common_traits/debug.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ where
1515
self.capacity()
1616
)?;
1717
for frag in &self.fragments {
18-
writeln!(f, " {:?}", frag)?;
18+
writeln!(f, " {frag:?}")?;
1919
}
2020
writeln!(f, "] }}")
2121
}

src/growth/doubling/doubling_growth.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,7 @@ impl<T> SplitVec<T, Doubling> {
259259
pub fn with_doubling_growth_and_fragments_capacity(fragments_capacity: usize) -> Self {
260260
assert!(
261261
fragments_capacity > 0 && fragments_capacity <= CAPACITIES_LEN,
262-
"fragments_capacity must be within 1..{}; however, {} is provided.",
263-
CAPACITIES_LEN,
264-
fragments_capacity
262+
"fragments_capacity must be within 1..{CAPACITIES_LEN}; however, {fragments_capacity} is provided."
265263
);
266264
assert!(fragments_capacity > 0);
267265
let fragments =

0 commit comments

Comments
 (0)