summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-03 17:17:54 +0000
committerGitHub <noreply@github.com>2020-03-03 17:17:54 +0000
commit837fb44ac1e36db7e54f683c7c5a530eb0fc5ed5 (patch)
tree1d968ff505227bb7e4d2e851ac21044c74bc41a1 /src
parent2a4028346243809e352c4257e1b2017fe07db984 (diff)
parent2ff30d8a5dd423e33cbb9c17526cdf37a90d811c (diff)
downloadnix-837fb44ac1e36db7e54f683c7c5a530eb0fc5ed5.zip
Merge #1189
1189: Derive `Ord`, `PartialOrd` for `Pid` r=posborne a=ranweiler Closes #1188. Co-authored-by: Joe Ranweiler <joe@lemma.co>
Diffstat (limited to 'src')
-rw-r--r--src/unistd.rs2
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 {