Skip to content

Commit 2666e88

Browse files
committed
Allow specific instance of while let.
1 parent 46ba32d commit 2666e88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/src/boxvec.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,8 @@ impl<T> Drop for Drain<'_, T> {
501501
fn drop(&mut self) {
502502
// len is currently 0 so panicking while dropping will not cause a double drop.
503503

504-
// exhaust self first
504+
// exhaust self first, clippy warning here is seemingly a fluke.
505+
#[allow(clippy::while_let_on_iterator)]
505506
while let Some(_) = self.next() {}
506507

507508
if self.tail_len > 0 {

0 commit comments

Comments
 (0)