Skip to content
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

clippy fixes #6789

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

clippy fixes #6789

wants to merge 8 commits into from

Conversation

barafael
Copy link
Contributor

@barafael barafael commented Aug 17, 2024

Fix a bunch of selected warnings produced by clippy. I organized the commits by lint group, so if one lint is not favored, we can hopefully just skip that commit.

@github-actions github-actions bot added R-loom-current-thread Run loom current-thread tests on this PR R-loom-multi-thread Run loom multi-thread tests on this PR R-loom-multi-thread-alt Run loom multi-thread alt tests on this PR R-loom-sync Run loom sync tests on this PR R-loom-time-driver Run loom time driver tests on this PR labels Aug 17, 2024
@barafael barafael changed the title Rb/clippy fixes clippy fixes Aug 17, 2024
@@ -1094,7 +1094,7 @@ impl<T> From<T> for RwLock<T> {
}
}

impl<T: ?Sized> Default for RwLock<T>
impl<T> Default for RwLock<T>
Copy link
Contributor Author

@barafael barafael Aug 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default requires Sized, so the ?Sized makes no difference

@barafael barafael force-pushed the rb/clippy_fixes branch 3 times, most recently from 89f6bba to 50c5ae5 Compare August 17, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R-loom-current-thread Run loom current-thread tests on this PR R-loom-multi-thread Run loom multi-thread tests on this PR R-loom-multi-thread-alt Run loom multi-thread alt tests on this PR R-loom-sync Run loom sync tests on this PR R-loom-time-driver Run loom time driver tests on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant