diff options
author | Joe Ranweiler <joe@lemma.co> | 2020-02-29 10:54:50 -0800 |
---|---|---|
committer | Joe Ranweiler <joe@lemma.co> | 2020-03-03 09:13:36 -0800 |
commit | 2ff30d8a5dd423e33cbb9c17526cdf37a90d811c (patch) | |
tree | 1d968ff505227bb7e4d2e851ac21044c74bc41a1 /src/unistd.rs | |
parent | 207d892707c0811848a502a4403e50422b2b32b1 (diff) | |
download | nix-2ff30d8a5dd423e33cbb9c17526cdf37a90d811c.zip |
Derive `Ord`, `PartialOrd` for `Pid`
Diffstat (limited to 'src/unistd.rs')
-rw-r--r-- | src/unistd.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index 904c1c81..64873635 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -115,7 +115,7 @@ impl fmt::Display for Gid { /// /// Newtype pattern around `pid_t` (which is just alias). It prevents bugs caused by accidentally /// passing wrong value. -#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] +#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] pub struct Pid(pid_t); impl Pid { |