Skip to content

Commit

Permalink
Merge pull request #30 from Mic92/clippy
Browse files Browse the repository at this point in the history
fix clippy warnings
  • Loading branch information
Mic92 authored Dec 17, 2020
2 parents 9d23b59 + fb5ab4e commit 4e68e72
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 4e68e72

Please sign in to comment.