Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Dec 17, 2020
1 parent 9d23b59 commit fb5ab4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/container/containerd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct Containerd {}

impl Container for Containerd {
fn lookup(&self, container_id: &str) -> Result<Pid> {
let command = format!("ctr task list");
let command = "ctr task list";
let output = tryfmt!(
Command::new("ctr").args(&["task", "list"]).output(),
"Running '{}' failed",
Expand Down
2 changes: 1 addition & 1 deletion src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl CntrFs {
Ok(fd)
}

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

// numbers of sessions is optimized for cached read
Expand Down

0 comments on commit fb5ab4e

Please sign in to comment.