Skip to content

Commit c5db0ea

Browse files
bors[bot]asomers
andauthored
Merge #1569
1569: Fix a Clippy warning on the latest nightly r=asomers a=asomers Co-authored-by: Alan Somers <[email protected]>
2 parents da49e4f + bbe4749 commit c5db0ea

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)