From 88fb33113dc1c7dd3cd4eecb985631f6f7b97e89 Mon Sep 17 00:00:00 2001 From: Danny Canter Date: Sun, 8 Jan 2023 02:29:45 -0800 Subject: [PATCH] Lint: Fix clippy errors Fixes: #99 Signed-off-by: Danny Canter --- src/hierarchies.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hierarchies.rs b/src/hierarchies.rs index 1306c28..37a9bac 100644 --- a/src/hierarchies.rs +++ b/src/hierarchies.rs @@ -176,7 +176,7 @@ impl Hierarchy for V1 { fn parent_control_group(&self, path: &str) -> Cgroup { let path = Path::new(path); let parent_path = path.parent().unwrap().to_string_lossy().to_string(); - Cgroup::load(auto(), &parent_path) + Cgroup::load(auto(), parent_path) } fn root(&self) -> PathBuf { @@ -258,7 +258,7 @@ impl Hierarchy for V2 { fn parent_control_group(&self, path: &str) -> Cgroup { let path = Path::new(path); let parent_path = path.parent().unwrap().to_string_lossy().to_string(); - Cgroup::load(auto(), &parent_path) + Cgroup::load(auto(), parent_path) } fn root(&self) -> PathBuf {