Skip to content

Commit 4e68e72

Browse files
authored
Merge pull request #30 from Mic92/clippy
fix clippy warnings
2 parents 9d23b59 + fb5ab4e commit 4e68e72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/container/containerd.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub struct Containerd {}
1111

1212
impl Container for Containerd {
1313
fn lookup(&self, container_id: &str) -> Result<Pid> {
14-
let command = format!("ctr task list");
14+
let command = "ctr task list";
1515
let output = tryfmt!(
1616
Command::new("ctr").args(&["task", "list"]).output(),
1717
"Running '{}' failed",

src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ impl CntrFs {
258258
Ok(fd)
259259
}
260260

261-
pub fn spawn_sessions<'a>(self) -> Result<Vec<JoinHandle<io::Result<()>>>> {
261+
pub fn spawn_sessions(self) -> Result<Vec<JoinHandle<io::Result<()>>>> {
262262
let mut sessions = Vec::new();
263263

264264
// numbers of sessions is optimized for cached read

0 commit comments

Comments
 (0)