Skip to content

Commit 46a3af6

Browse files
committed
tests: Drop unnecessary drop
Newer rustc warns about this, dropping a reference does nothing. I think this code used to handle unmount via drop.
1 parent 4b9728c commit 46a3af6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/src/privtests.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ fn test_install_filesystem(image: &str, blockdev: &Utf8Path) -> Result<()> {
157157

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

160-
drop(mountpoint);
161-
162160
Ok(())
163161
}
164162

0 commit comments

Comments
 (0)