aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src
diff options
context:
space:
mode:
authorJeremy Kolb <[email protected]>2019-07-05 03:59:28 +0100
committerJeremy Kolb <[email protected]>2019-07-05 04:00:00 +0100
commit6b4ec73b7ed2522b837368a11863afb4b432b9a4 (patch)
tree3df753fe58ec1c3fccb48cc2c889fff36e360f33 /crates/ra_syntax/src
parent21f70a7293e7b24dedeec9a504763a1a3ef57675 (diff)
Clippy changes
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r--crates/ra_syntax/src/validation/unescape.rs2
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
263fn byte_from_char(c: char) -> u8 { 263fn 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