]> git.proxmox.com Git - cargo.git/commitdiff
fix mem replace unused
authordylan_DPC <dylan.dpc@gmail.com>
Mon, 20 Apr 2020 13:08:26 +0000 (15:08 +0200)
committerdylan_DPC <dylan.dpc@gmail.com>
Mon, 20 Apr 2020 13:08:26 +0000 (15:08 +0200)
src/cargo/sources/git/utils.rs

index 2f54b846e3be38d30259459a824db16d1a2353dc..27fba2863f3ed339966d6dc9e9cea9becca2ff7f 100644 (file)
@@ -838,7 +838,7 @@ fn maybe_gc_repo(repo: &mut git2::Repository) -> CargoResult<()> {
             );
             if out.status.success() {
                 let new = git2::Repository::open(repo.path())?;
-                mem::replace(repo, new);
+                let _ = mem::replace(repo, new);
                 return Ok(());
             }
         }