mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 08:36:03 +00:00
18 lines
596 B
Plaintext
18 lines
596 B
Plaintext
error: use of `.to_digit(..).is_some()`
|
|
--> $DIR/to_digit_is_some.rs:7:13
|
|
|
|
|
LL | let _ = d.to_digit(8).is_some();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `d.is_digit(8)`
|
|
|
|
|
= note: `-D clippy::to-digit-is-some` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::to_digit_is_some)]`
|
|
|
|
error: use of `.to_digit(..).is_some()`
|
|
--> $DIR/to_digit_is_some.rs:8:13
|
|
|
|
|
LL | let _ = char::to_digit(c, 8).is_some();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `char::is_digit(c, 8)`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|