Skip to content

Commit bbe4749

Browse files
committed
Fix a Clippy warning on the latest nightly
1 parent da49e4f commit bbe4749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mount/bsd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ impl<'a> Drop for Nmount<'a> {
397397
// Free the owned string. Safe because we recorded ownership,
398398
// and Nmount does not implement Clone.
399399
unsafe {
400-
CString::from_raw(iov.0.iov_base as *mut c_char);
400+
drop(CString::from_raw(iov.0.iov_base as *mut c_char));
401401
}
402402
}
403403
}

0 commit comments

Comments
 (0)