I ran cargo clippy and got some warnings. Those were removed with the first commit.
After that, I checked if there were any #[allow] sections. => Therefore I replaced the deprecated spin_loop with the newer upstream solution.
Chore: fix cargo clippy warnings #186
funny0facer/clippy into master
Thanks, just one comment.
@ -29,3 +26,3 @@
core::sync::atomic::spin_loop_hint();
core::hint::spin_loop();
}
}
Have you checked that this no longer applies with our MSRV?
@ -29,3 +26,3 @@
core::sync::atomic::spin_loop_hint();
core::hint::spin_loop();
}
}
I am not sure what you mean.
From our Cargo.toml: rust-version = "1.71"
hint::spin_loop() is in rust since 1.49.0 (https://doc.rust-lang.org/src/core/hint.rs.html#268-295) and spin_loop_hint() is deprecated since 1.51.0 (https://doc.rust-lang.org/src/core/sync/atomic.rs.html#4608-4613)
- src/rwlock.rs
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?