Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
1569: Fix a Clippy warning on the latest nightly r=asomers a=asomers



Co-authored-by: Alan Somers <[email protected]>
  • Loading branch information
bors[bot] and asomers authored Oct 16, 2021
2 parents da49e4f + bbe4749 commit c5db0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mount/bsd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
Expand Down

0 comments on commit c5db0ea

Please sign in to comment.