Skip to content

Commit

Permalink
Merge #268
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bors[bot] and CAD97 committed Jul 24, 2019
2 parents 89f5f55 + 6398155 commit e0c3b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unic/char/range/src/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e0c3b60

Please sign in to comment.