Skip to content

Commit 52ad6b8

Browse files
Dylan-DPCMark-Simulacrum
authored andcommitted
fix mem replace unused
1 parent 254528d commit 52ad6b8

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
@@ -835,7 +835,7 @@ fn maybe_gc_repo(repo: &mut git2::Repository) -> CargoResult<()> {
835835
);
836836
if out.status.success() {
837837
let new = git2::Repository::open(repo.path())?;
838-
mem::replace(repo, new);
838+
let _ = mem::replace(repo, new);
839839
return Ok(());
840840
}
841841
}

0 commit comments

Comments
 (0)