Commit a50cdc6b authored by Ben Boeckel's avatar Ben Boeckel

rust: avoid unnecessary Vec collecting

parent 62f8658f
......@@ -157,7 +157,7 @@ impl GitContext {
.git()
.arg("fetch")
.arg(remote.as_ref())
.args(&refnames.into_iter().collect::<Vec<_>>())
.args(refnames.into_iter())
.output()
.chain_err(|| "failed to construct fetch command")?;
if !fetch.status.success() {
......
......@@ -699,7 +699,7 @@ impl GitWorkArea {
let merge_recursive = self
.git()
.arg("merge-recursive")
.args(&bases.iter().map(CommitId::as_str).collect::<Vec<_>>())
.args(bases.iter().map(CommitId::as_str))
.arg("--")
.arg(base.as_str())
.arg(topic.as_str())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment