You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When formatting with byte literals, e.g. println!("Ascii code of letter e is {}", b'e');
clippy gives
warning: literal with an empty format string
--> src/main.rs:2:43
|
2 | println!("Ascii code of letter e is {}", b'e');
| ^^^^
|
= note: `#[warn(clippy::print_literal)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal
help: try this
|
2 - println!("Ascii code of letter e is {}", b'e');
2 + println!("Ascii code of letter e is e");
|
However, the output changed by this modification, from Ascii code of letter e is 101
to Ascii code of letter e is e
Summary
When formatting with byte literals, e.g.
println!("Ascii code of letter e is {}", b'e');
clippy gives
However, the output changed by this modification, from
Ascii code of letter e is 101
to
Ascii code of letter e is e
Reproducer
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: