Skip to content

Fix clippy warnings #321

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

Merged
merged 1 commit into from
Apr 29, 2025
Merged

Fix clippy warnings #321

merged 1 commit into from
Apr 29, 2025

Conversation

tylerfanelli
Copy link
Member

No description provided.

Signed-off-by: Tyler Fanelli <[email protected]>
Copy link
Member

@jakecorrenti jakecorrenti left a comment

Choose a reason for hiding this comment

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

LGTM.

std::ptr::eq(ret, libc::MAP_FAILED) feels weird to use when comparing error codes, but I understand it's a bindings nuance.

@tylerfanelli
Copy link
Member Author

LGTM.

std::ptr::eq(ret, libc::MAP_FAILED) feels weird to use when comparing error codes, but I understand it's a bindings nuance.

I agree. The docs even say:

This is the same as using the == operator, but less generic

@tylerfanelli tylerfanelli merged commit 3722a25 into containers:main Apr 29, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants