diff options
Diffstat (limited to 'crates/ra_syntax/src/validation')
-rw-r--r-- | crates/ra_syntax/src/validation/unescape.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/validation/unescape.rs b/crates/ra_syntax/src/validation/unescape.rs index 1cb2433f3..7eed6c663 100644 --- a/crates/ra_syntax/src/validation/unescape.rs +++ b/crates/ra_syntax/src/validation/unescape.rs | |||
@@ -262,7 +262,7 @@ where | |||
262 | 262 | ||
263 | fn byte_from_char(c: char) -> u8 { | 263 | fn byte_from_char(c: char) -> u8 { |
264 | let res = c as u32; | 264 | let res = c as u32; |
265 | assert!(res <= u8::max_value() as u32, "guaranteed because of Mode::Byte"); | 265 | assert!(res <= u32::from(u8::max_value()), "guaranteed because of Mode::Byte"); |
266 | res as u8 | 266 | res as u8 |
267 | } | 267 | } |
268 | 268 | ||