From 95ae1b7cfaa92ac0fc10a362ed9cdd29a37b0781 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 29 Dec 2021 05:56:25 -0600 Subject: Make Ino derive Ord/PartialOrd --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 790a91a..a6e6d36 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,7 +48,7 @@ pub struct Timestamp { /// /// This is a public newtype. Users are expected to inspect the underlying `u64` and construct /// arbitrary `Ino` objects. -#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] +#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] pub struct Ino(pub u64); impl Ino { -- cgit v1.2.3