Skip to content

Commit e0c3b60

Browse files
bors[bot]CAD97
andcommitted
Merge #268
268: impl Hash for CharRange r=CAD97 a=CAD97 I don't know why we didn't have this already /shrug <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/open-i18n/rust-unic/268) <!-- Reviewable:end --> Co-authored-by: Christopher Durham <[email protected]>
2 parents 89f5f55 + 6398155 commit e0c3b60

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)