Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make clippy happy #141

Closed
Xuanwo opened this issue Jun 23, 2022 · 0 comments · Fixed by #144
Closed

Make clippy happy #141

Xuanwo opened this issue Jun 23, 2022 · 0 comments · Fixed by #144
Assignees

Comments

@Xuanwo
Copy link
Member

Xuanwo commented Jun 23, 2022

Clippy is not happy for a lot of reasons:

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

Let's address all of them and make clippy happy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant