Skip to content

Commit

Permalink
tests: Drop unnecessary drop
Browse files Browse the repository at this point in the history
Newer rustc warns about this, dropping a reference does
nothing.  I think this code used to handle unmount via drop.
  • Loading branch information
cgwalters committed Aug 25, 2023
1 parent 4b9728c commit 46a3af6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/src/privtests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ fn test_install_filesystem(image: &str, blockdev: &Utf8Path) -> Result<()> {

cmd!(sh, "umount -R {mountpoint}").run()?;

drop(mountpoint);

Ok(())
}

Expand Down

0 comments on commit 46a3af6

Please sign in to comment.