Skip to content

Commit

Permalink
impl Hash for CharRange
Browse files Browse the repository at this point in the history
  • Loading branch information
CAD97 authored Jul 10, 2019
1 parent 89f5f55 commit 6398155
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 6398155

Please sign in to comment.