diff options
Diffstat (limited to 'src/components/style/selector_matching.rs')
-rw-r--r-- | src/components/style/selector_matching.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/style/selector_matching.rs b/src/components/style/selector_matching.rs index 0d861821e34..4c0f6a7898d 100644 --- a/src/components/style/selector_matching.rs +++ b/src/components/style/selector_matching.rs @@ -49,12 +49,12 @@ impl<'a> Hash for LowercaseAsciiString<'a> { // `Ascii` type's invariants by using `to_ascii_nocheck`, but it's OK as we simply // convert to a byte afterward. unsafe { - state.write_u8(b.to_ascii_nocheck().to_lower().to_byte()) + state.write_u8(b.to_ascii_nocheck().to_lower().to_byte()).unwrap() }; } // Terminate the string with a non-UTF-8 character, to match what the built-in string // `ToBytes` implementation does. (See `libstd/to_bytes.rs`.) - state.write_u8(0xff); + state.write_u8(0xff).unwrap(); } } |