diff --git a/src/short_string.rs b/src/short_string.rs index f854c03..0cd0a07 100644 --- a/src/short_string.rs +++ b/src/short_string.rs @@ -6,7 +6,7 @@ use std::{ use crate::slice_of_u8_utils::SliceOfU8Ext; pub const SHORT_STRING_MAX_LEN: usize = 255; -#[derive(Clone, PartialEq, Eq, PartialOrd, Ord)] +#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ShortString { data: [u8; 256], }