mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-14 07:12:51 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
24 lines
950 B
Text
24 lines
950 B
Text
warning: error reading Clippy's configuration file: deprecated field `cyclomatic-complexity-threshold`. Please use `cognitive-complexity-threshold` instead
|
|
--> $DIR/$DIR/clippy.toml:2:1
|
|
|
|
|
LL | cyclomatic-complexity-threshold = 2
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: error reading Clippy's configuration file: deprecated field `blacklisted-names`. Please use `disallowed-names` instead
|
|
--> $DIR/$DIR/clippy.toml:3:1
|
|
|
|
|
LL | blacklisted-names = [ "..", "wibble" ]
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: the function has a cognitive complexity of (3/2)
|
|
--> $DIR/conf_deprecated_key.rs:6:4
|
|
|
|
|
LL | fn cognitive_complexity() {
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
|
= note: `-D clippy::cognitive-complexity` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`
|
|
|
|
error: aborting due to 1 previous error; 2 warnings emitted
|
|
|