error: this import is redundant
--> examples/prime_number.rs:3:1
|
3 | use pprof;
| ^^^^^^^^^^ help: remove it entirely
|
= note: `-D clippy::single-component-path-imports` implied by `-D warnings`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
error: this import is redundant
--> examples/malloc_hook.rs:5:1
|
5 | use pprof;
| ^^^^^^^^^^ help: remove it entirely
|
= note: `-D clippy::single-component-path-imports` implied by `-D warnings`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
error: this import is redundant
--> examples/flamegraph.rs:3:1
|
3 | use pprof;
| ^^^^^^^^^^ help: remove it entirely
|
= note: `-D clippy::single-component-path-imports` implied by `-D warnings`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
Clippy is not happy for a lot of reasons:
Let's address all of them and make clippy happy.