Skip to content

Conversation

@tylerfanelli
Copy link
Member

No description provided.

Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>
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
@tylerfanelli tylerfanelli deleted the clippy branch May 6, 2025 01:26
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