mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
23 lines
808 B
Text
23 lines
808 B
Text
error: use of `char::is_digit` with literal radix of 10
|
|
--> $DIR/is_digit_ascii_radix.rs:9:13
|
|
|
|
|
LL | let _ = c.is_digit(10);
|
|
| ^^^^^^^^^^^^^^ help: try: `c.is_ascii_digit()`
|
|
|
|
|
= note: `-D clippy::is-digit-ascii-radix` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::is_digit_ascii_radix)]`
|
|
|
|
error: use of `char::is_digit` with literal radix of 16
|
|
--> $DIR/is_digit_ascii_radix.rs:10:13
|
|
|
|
|
LL | let _ = c.is_digit(16);
|
|
| ^^^^^^^^^^^^^^ help: try: `c.is_ascii_hexdigit()`
|
|
|
|
error: use of `char::is_digit` with literal radix of 16
|
|
--> $DIR/is_digit_ascii_radix.rs:11:13
|
|
|
|
|
LL | let _ = c.is_digit(0x10);
|
|
| ^^^^^^^^^^^^^^^^ help: try: `c.is_ascii_hexdigit()`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|