eb3970285b
In order to switch `clippy::uninlined_format_args` from pedantic to style, all existing tests must not raise a warning. I did not want to change the actual tests, so this is a relatively minor change that: * add `#![allow(clippy::uninlined_format_args)]` where needed * normalizes all allow/deny/warn attributes * all allow attributes are grouped together * sorted alphabetically * the `clippy::*` attributes are listed separate from the other ones. * deny and warn attributes are listed before the allowed ones changelog: none
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
error: matching on `Some` with `ok()` is redundant
|
|
--> $DIR/match_result_ok.rs:9:5
|
|
|
|
|
LL | if let Some(y) = x.parse().ok() { y } else { 0 }
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::match-result-ok` implied by `-D warnings`
|
|
help: consider matching on `Ok(y)` and removing the call to `ok` instead
|
|
|
|
|
LL | if let Ok(y) = x.parse() { y } else { 0 }
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
error: matching on `Some` with `ok()` is redundant
|
|
--> $DIR/match_result_ok.rs:19:9
|
|
|
|
|
LL | if let Some(y) = x . parse() . ok () {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: consider matching on `Ok(y)` and removing the call to `ok` instead
|
|
|
|
|
LL | if let Ok(y) = x . parse() {
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
error: matching on `Some` with `ok()` is redundant
|
|
--> $DIR/match_result_ok.rs:45:5
|
|
|
|
|
LL | while let Some(a) = wat.next().ok() {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: consider matching on `Ok(a)` and removing the call to `ok` instead
|
|
|
|
|
LL | while let Ok(a) = wat.next() {
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
error: aborting due to 3 previous errors
|
|
|