From e6ebd09b3e28dfb6f05e445a5edce14678279266 Mon Sep 17 00:00:00 2001 From: Szymon Walter Date: Tue, 20 Mar 2018 10:14:24 +0100 Subject: [PATCH] `derive` `PartialOrd` and `Ord` for `Address` --- src/block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block.rs b/src/block.rs index 4c43dc1..92b77c3 100644 --- a/src/block.rs +++ b/src/block.rs @@ -34,7 +34,7 @@ impl Size for Size8192 { const LOG_SIZE: u32 = 3; } -#[derive(Clone, Copy, PartialEq, Eq, Hash)] +#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Address { block: usize, offset: usize,