Skip to content

Commit 11600c4

Browse files
committed
[meta] clippy fixes
1 parent 455a9c6 commit 11600c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/slots.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ mod tests {
144144

145145
fn assert_reserved(slots: &SlotReservations, expected: &[u64]) {
146146
for &slot in expected {
147-
assert!(slots.check_reserved(slot), "slot {} is not reserved", slot);
147+
assert!(slots.check_reserved(slot), "slot {slot} is not reserved");
148148
}
149149

150150
// Also check slots from max to 64 or so to make sure they are not reserved.

tests/test_properties.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ fn test_future_queue_impl<G: GroupSpec>(state: TestState<G>) {
502502
if let Err(err) =
503503
item_sender.send(G::create_stream_item(id, &desc, delay_fut, sender))
504504
{
505-
panic!("future_receiver held open by loop: {}", err);
505+
panic!("future_receiver held open by loop: {err}");
506506
}
507507
}
508508
})
@@ -567,7 +567,7 @@ fn test_future_queue_impl<G: GroupSpec>(state: TestState<G>) {
567567
.collect();
568568
if !not_completed.is_empty() {
569569
let not_completed_ids = not_completed.join(", ");
570-
panic!("some futures did not complete: {}", not_completed_ids);
570+
panic!("some futures did not complete: {not_completed_ids}");
571571
}
572572
})
573573
}

0 commit comments

Comments
 (0)