Skip to content

Commit 99761e4

Browse files
committed
fix clippy issues
1 parent e44ee2d commit 99761e4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/map.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6229,7 +6229,7 @@ mod test_map {
62296229
}
62306230

62316231
for (k, v) in map {
6232-
println!("{}, {}", k, v);
6232+
println!("{k}, {v}");
62336233
}
62346234
}
62356235

@@ -6334,8 +6334,7 @@ mod test_map {
63346334
for ((key, value), (panic_in_clone, panic_in_drop)) in guard.iter().zip(iter) {
63356335
if *key != check_count {
63366336
return Err(format!(
6337-
"key != check_count,\nkey: `{}`,\ncheck_count: `{}`",
6338-
key, check_count
6337+
"key != check_count,\nkey: `{key}`,\ncheck_count: `{check_count}`"
63396338
));
63406339
}
63416340
if value.dropped
@@ -6362,8 +6361,7 @@ mod test_map {
63626361

63636362
if count != check_count {
63646363
return Err(format!(
6365-
"count != check_count,\ncount: `{}`,\ncheck_count: `{}`",
6366-
count, check_count
6364+
"count != check_count,\ncount: `{count}`,\ncheck_count: `{check_count}`"
63676365
));
63686366
}
63696367
core::mem::forget(guard);

0 commit comments

Comments
 (0)