2019-11-10 07:12:05 -06:00
|
|
|
error: use of `.to_digit(..).is_some()`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/to_digit_is_some.rs:7:13
|
2019-11-10 07:12:05 -06:00
|
|
|
|
|
2022-05-05 09:12:52 -05:00
|
|
|
LL | let _ = d.to_digit(8).is_some();
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `d.is_digit(8)`
|
2019-11-10 07:12:05 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::to-digit-is-some` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::to_digit_is_some)]`
|
2019-11-10 07:12:05 -06:00
|
|
|
|
|
|
|
error: use of `.to_digit(..).is_some()`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/to_digit_is_some.rs:8:13
|
2019-11-10 07:12:05 -06:00
|
|
|
|
|
2022-05-05 09:12:52 -05:00
|
|
|
LL | let _ = char::to_digit(c, 8).is_some();
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `char::is_digit(c, 8)`
|
2019-11-10 07:12:05 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|