mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Clippy changes
This commit is contained in:
parent
21f70a7293
commit
6b4ec73b7e
6 changed files with 21 additions and 26 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue