Skip to content

Commit 6398155

Browse files
authored
impl Hash for CharRange
1 parent 89f5f55 commit 6398155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unic/char/range/src/range.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use crate::CharIter;
3434
/// If constructed in reverse order, such that `self.high` is ordered before `self.low`,
3535
/// the range is empty. If you want to iterate in decreasing order, use `.iter().rev()`.
3636
/// All empty ranges are considered equal no matter the internal state.
37-
#[derive(Copy, Clone, Debug, Eq)]
37+
#[derive(Copy, Clone, Debug, Eq, Hash)]
3838
pub struct CharRange {
3939
/// The lowest character in this range (inclusive).
4040
pub low: char,

0 commit comments

Comments
 (0)