mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 18:15:01 +00:00
17 lines
535 B
Plaintext
17 lines
535 B
Plaintext
error: use of `.to_digit(..).is_some()`
|
|
--> $DIR/to_digit_is_some.rs:9:13
|
|
|
|
|
LL | let _ = d.to_digit(10).is_some();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `d.is_digit(10)`
|
|
|
|
|
= note: `-D clippy::to-digit-is-some` implied by `-D warnings`
|
|
|
|
error: use of `.to_digit(..).is_some()`
|
|
--> $DIR/to_digit_is_some.rs:10:13
|
|
|
|
|
LL | let _ = char::to_digit(c, 10).is_some();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `char::is_digit(c, 10)`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|