Skip to content

Commit

Permalink
Fix useless uses of format!
Browse files Browse the repository at this point in the history
  • Loading branch information
spl committed Mar 26, 2019
1 parent c2195c3 commit bba4983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/itarbundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ impl ITarIoFactory for HttpITarIoFactory {
self.url.clone(),
res.status(),
)))
.chain_err(|| format!("couldn\'t probe"));
.chain_err(|| "couldn\'t probe".to_string());
}

let final_url = res.url().clone().into_string();
Expand All @@ -277,7 +277,7 @@ impl ITarIoFactory for HttpITarIoFactory {
index_url.clone(),
res.status(),
)))
.chain_err(|| format!("couldn\'t fetch"));
.chain_err(|| "couldn\'t fetch".to_string());
}

Ok(GzDecoder::new(res))
Expand Down

0 comments on commit bba4983

Please sign in to comment.