Skip to content

Commit c5ffe73

Browse files
committed
add Hash & Ord to Allocation
1 parent 2878905 commit c5ffe73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type Size = u32;
1010
type Location = Size;
1111

1212
/// Metadata containing information about an allocation
13-
#[derive(PartialEq, Eq, Copy, Clone, Debug)]
13+
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)]
1414
pub struct Allocation {
1515
/// The location of this allocation within the buffer
1616
pub offset: Location,

0 commit comments

Comments
 (0)