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

Implement extra traits for all types #1035

Merged
merged 6 commits into from
Jun 12, 2019
Merged

Implement extra traits for all types #1035

merged 6 commits into from
Jun 12, 2019

Commits on Jun 9, 2019

  1. Enable libc extra_traits feature

    Also bump Rust requirement to 1.25 which is a requirement of that feature
    Susurrus committed Jun 9, 2019
    Configuration menu
    Copy the full SHA
    2075ac7 View commit details
    Browse the repository at this point in the history
  2. Add extra traits for all types

    Derive Clone, Copy, Eq, Hash, and PartialEq for all types. Not all
    traits are supported by all types, which is why many are missing
    some.
    Susurrus committed Jun 9, 2019
    Configuration menu
    Copy the full SHA
    c50e987 View commit details
    Browse the repository at this point in the history
  3. Remove test of impl Debug for PollFd

    As this is now derived, having a test is unnecessary
    Susurrus committed Jun 9, 2019
    Configuration menu
    Copy the full SHA
    b5c04ad View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    07420b5 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2019

  1. Fix tests for abstract sockets

    Abstract paths should always be N-1 in length where N is the length of
    the `sun_path` field (first byte is \0). Given that,
    `UnixAddr::new_abstract()` should always return this N-1 length, not
    just the length of the string provided (the rest of the array will be
    \0s).
    Susurrus committed Jun 12, 2019
    Configuration menu
    Copy the full SHA
    3fdf3fe View commit details
    Browse the repository at this point in the history
  2. Use ptr::NonNull for Dir

    This is a minor optimization that allows for reduced sizes of datatypes. Since this pointer
    will never be NULL, it's safe to use here
    Susurrus committed Jun 12, 2019
    Configuration menu
    Copy the full SHA
    37929c7 View commit details
    Browse the repository at this point in the history