summaryrefslogtreecommitdiff
path: root/src/mount
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-10-15 15:29:59 -0600
committerAlan Somers <asomers@gmail.com>2021-10-16 15:27:32 -0600
commitbbe47496e8f473ff17d68e87e1bf804399c2b2c3 (patch)
tree0cda8ed3a5e9efcd4c0b0a06b3309ad3c8178c80 /src/mount
parentda49e4f988d7a7fcbb7b98eddd52637f3f3e68e1 (diff)
downloadnix-bbe47496e8f473ff17d68e87e1bf804399c2b2c3.zip
Fix a Clippy warning on the latest nightly
Diffstat (limited to 'src/mount')
-rw-r--r--src/mount/bsd.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mount/bsd.rs b/src/mount/bsd.rs
index 23331a0a..627bfa5e 100644
--- a/src/mount/bsd.rs
+++ b/src/mount/bsd.rs
@@ -397,7 +397,7 @@ impl<'a> Drop for Nmount<'a> {
// Free the owned string. Safe because we recorded ownership,
// and Nmount does not implement Clone.
unsafe {
- CString::from_raw(iov.0.iov_base as *mut c_char);
+ drop(CString::from_raw(iov.0.iov_base as *mut c_char));
}
}
}