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

lint: Fix current clippy errors #99

Closed
dcantah opened this issue Jan 8, 2023 · 0 comments · Fixed by #100
Closed

lint: Fix current clippy errors #99

dcantah opened this issue Jan 8, 2023 · 0 comments · Fixed by #100
Labels
enhancement New feature or request needs-review

Comments

@dcantah
Copy link

dcantah commented Jan 8, 2023

error: the borrowed expression implements the required traits
   --> src/hierarchies.rs:179:30
    |
179 |         Cgroup::load(auto(), &parent_path)
    |                              ^^^^^^^^^^^^ help: change this to: `parent_path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `-D clippy::needless-borrow` implied by `-D warnings`

error: the borrowed expression implements the required traits
   --> src/hierarchies.rs:261:30
    |
261 |         Cgroup::load(auto(), &parent_path)
    |                              ^^^^^^^^^^^^ help: change this to: `parent_path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
@dcantah dcantah added enhancement New feature or request needs-review labels Jan 8, 2023
dcantah added a commit to dcantah/cgroups-rs that referenced this issue Jan 8, 2023
Fixes: kata-containers#99

Signed-off-by: Danny Canter <danny@dcantah.dev>
Tim-Zhang added a commit to Tim-Zhang/cgroups-rs that referenced this issue Jan 11, 2023
To include patches kata-containers#91, kata-containers#94, kata-containers#98, kata-containers#99

Signed-off-by: Tim Zhang <tim@hyper.sh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant