Skip to content

Commit a06744b

Browse files
committed
fix mem replace unused
1 parent 5b620dc commit a06744b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/sources/git/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ fn maybe_gc_repo(repo: &mut git2::Repository) -> CargoResult<()> {
838838
);
839839
if out.status.success() {
840840
let new = git2::Repository::open(repo.path())?;
841-
mem::replace(repo, new);
841+
let _ = mem::replace(repo, new);
842842
return Ok(());
843843
}
844844
}

0 commit comments

Comments
 (0)