Skip to content

Commit bd161d9

Browse files
highlighter: Derive Hash for Highlight
Co-authored-by: misterclayt0n <[email protected]>
1 parent 0fe37c6 commit bd161d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

highlighter/src/highlighter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ impl HighlightQuery {
119119
///
120120
/// This type is represented as a non-max u32 - a u32 which cannot be `u32::MAX`. This is checked
121121
/// at runtime with assertions in `Highlight::new`.
122-
#[derive(Copy, Clone, PartialEq, Eq)]
122+
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
123123
pub struct Highlight(NonZeroU32);
124124

125125
impl Highlight {

0 commit comments

Comments
 (0)