mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-03 00:00:05 +02:00
ci: update clippy version to 1.75 (#6273)
This commit is contained in:
@@ -178,6 +178,8 @@ where
|
||||
locked_node = node.inner.lock().unwrap();
|
||||
locked_parent
|
||||
}
|
||||
// https://github.com/tokio-rs/tokio/pull/6273#discussion_r1443752911
|
||||
#[allow(clippy::unnecessary_literal_unwrap)]
|
||||
Err(TryLockError::Poisoned(err)) => Err(err).unwrap(),
|
||||
};
|
||||
|
||||
|
||||
@@ -270,7 +270,7 @@ mod test {
|
||||
for level in 1..5 {
|
||||
for pos in level..64 {
|
||||
let a = pos * 64_usize.pow(level as u32);
|
||||
assert_eq!(pos as usize, slot_for(a as u64, level));
|
||||
assert_eq!(pos, slot_for(a as u64, level));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user