mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
15 lines
685 B
Text
15 lines
685 B
Text
warning: error reading Clippy's configuration file `$DIR/clippy.toml`: deprecated field `cyclomatic-complexity-threshold`. Please use `cognitive-complexity-threshold` instead
|
|
|
|
warning: error reading Clippy's configuration file `$DIR/clippy.toml`: deprecated field `blacklisted-names`. Please use `disallowed-names` instead
|
|
|
|
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`
|
|
|
|
error: aborting due to previous error; 2 warnings emitted
|
|
|