Skip to content

Commit 414a28d

Browse files
Merge pull request #21366 from ChayimFriedman2/fix-clippy
minor: Fix Clippy
2 parents 11d6212 + b3fde4b commit 414a28d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

crates/span/src/ast_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ impl Drop for AstIdMap {
804804
// block on a receive
805805
_ = receiver.recv();
806806
// then drain the entire channel
807-
while let Ok(_) = receiver.try_recv() {}
807+
while receiver.try_recv().is_ok() {}
808808
// and sleep for a bit
809809
std::thread::sleep(std::time::Duration::from_millis(100));
810810
}

crates/span/src/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl Drop for SpanMap {
168168
// block on a receive
169169
_ = receiver.recv();
170170
// then drain the entire channel
171-
while let Ok(_) = receiver.try_recv() {}
171+
while receiver.try_recv().is_ok() {}
172172
// and sleep for a bit
173173
std::thread::sleep(std::time::Duration::from_millis(100));
174174
}

crates/syntax/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl<T> Drop for Parse<T> {
223223
// block on a receive
224224
_ = receiver.recv();
225225
// then drain the entire channel
226-
while let Ok(_) = receiver.try_recv() {}
226+
while receiver.try_recv().is_ok() {}
227227
// and sleep for a bit
228228
std::thread::sleep(std::time::Duration::from_millis(100));
229229
}

0 commit comments

Comments
 (0)