-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Clippy 1.75.0 errors #3521
Fix Clippy 1.75.0 errors #3521
Conversation
Signed-off-by: Bryan Gurney <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One request...
src/engine/structures/lock.rs
Outdated
@@ -370,6 +370,7 @@ where | |||
/// Returns true if: | |||
/// * The waiting task does not conflict with any already woken tasks. | |||
/// * The waiting task does not conflict with any locks currently held. | |||
#[allow(clippy::get_first)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of the allow, use front()
for get(0)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK; now I see it. It turns out that clippy did recommend front()
, but it was in a large list of first()
recommendations. I'll revert the clippy allow, let this change run through CI, and then rebase to remove the unnecessary allow commit if all tests pass.
Cockpit tests failed for commit 3849d76. @martinpitt, @jelly, @mvollmer please check. |
These are just minor lint fixes, so likely the failure is not due to us. |
Signed-off-by: Bryan Gurney <[email protected]>
Clippy 1.75.0 is showing initialize_devices as an unused import, but it is used in a test in strat_engine/liminal/identify.rs. Signed-off-by: Bryan Gurney <[email protected]>
Signed-off-by: Bryan Gurney <[email protected]>
a2c5cd0
to
d052161
Compare
Rebasing to remove the commits that added and reverted |
Cockpit tests failed for commit a2c5cd0. @martinpitt, @jelly, @mvollmer please check. |
Merging. I think there is something wrong with the testing framework on rawhide. |
Cockpit tests failed for commit d052161. @martinpitt, @jelly, @mvollmer please check. |
@mulkieran Right, something broke in the storage stack in rawhide yesterday. It's already on our large pile of stuff to look at which broke over the EOY holidays. Sorry for the trouble, please ignore for now -- tests passed on F39, which gives sufficient confidence. Your own |
That test is a test that essentially test stratisd's correct response to a storm of udev events. The tests are unfortunately a bit flaky, but also too useful for us to abandon.
|
Related: stratis-storage/project#682