From fb5ab4ee635d5530241778a7e8886c61f35f5666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 17 Dec 2020 10:36:11 +0100 Subject: [PATCH] fix clippy warnings --- src/container/containerd.rs | 2 +- src/fs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/container/containerd.rs b/src/container/containerd.rs index 3dfe76ea..b49e5a7b 100644 --- a/src/container/containerd.rs +++ b/src/container/containerd.rs @@ -11,7 +11,7 @@ pub struct Containerd {} impl Container for Containerd { fn lookup(&self, container_id: &str) -> Result { - let command = format!("ctr task list"); + let command = "ctr task list"; let output = tryfmt!( Command::new("ctr").args(&["task", "list"]).output(), "Running '{}' failed", diff --git a/src/fs.rs b/src/fs.rs index 8b5840e2..baf2f559 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -258,7 +258,7 @@ impl CntrFs { Ok(fd) } - pub fn spawn_sessions<'a>(self) -> Result>>> { + pub fn spawn_sessions(self) -> Result>>> { let mut sessions = Vec::new(); // numbers of sessions is optimized for cached read