Skip to content

Conversation

@SteveLauC
Copy link
Member

What does this PR do

In our most getsockopt_impl!() implementations, match <$ty>::try_from() will always succeed, making the Err(_) branch unreachable, however, we have to allow this because one exception: SockType.

For more information, see the code comments.

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

@SteveLauC
Copy link
Member Author

Related to #1819 and #1821.

@SteveLauC SteveLauC added this pull request to the merge queue Aug 11, 2024
Merged via the queue into nix-rust:master with commit c5a4299 Aug 11, 2024
@SteveLauC SteveLauC deleted the refactor/clippy branch August 11, 2024 06:41
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.

1 participant