Clippy changes

This commit is contained in:
Jeremy Kolb 2019-07-04 22:59:28 -04:00
parent 21f70a7293
commit 6b4ec73b7e
6 changed files with 21 additions and 26 deletions

View file

@ -262,7 +262,7 @@ where
fn byte_from_char(c: char) -> u8 {
let res = c as u32;
assert!(res <= u8::max_value() as u32, "guaranteed because of Mode::Byte");
assert!(res <= u32::from(u8::max_value()), "guaranteed because of Mode::Byte");
res as u8
}