diff --git a/unic/char/range/src/range.rs b/unic/char/range/src/range.rs index d958016f..049d07a1 100644 --- a/unic/char/range/src/range.rs +++ b/unic/char/range/src/range.rs @@ -34,7 +34,7 @@ use crate::CharIter; /// If constructed in reverse order, such that `self.high` is ordered before `self.low`, /// the range is empty. If you want to iterate in decreasing order, use `.iter().rev()`. /// All empty ranges are considered equal no matter the internal state. -#[derive(Copy, Clone, Debug, Eq)] +#[derive(Copy, Clone, Debug, Eq, Hash)] pub struct CharRange { /// The lowest character in this range (inclusive). pub low: char,