Skip to content

Commit 48dcb2a

Browse files
authored
Merge pull request #23 from matklad/patch-1
ByteSize: Hash
2 parents 8290027 + 0d53271 commit 48dcb2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub fn pib<V: Into<u64>>(size: V) -> u64 {
106106
}
107107

108108
/// Byte size representation
109-
#[derive(Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Default)]
109+
#[derive(Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, Default)]
110110
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
111111
pub struct ByteSize(pub u64);
112112

0 commit comments

Comments
 (0)