fix some clippy warnings

This commit is contained in:
Dustin J. Mitchell
2022-02-09 02:59:01 +00:00
parent a270b6c254
commit f96b5415c8
3 changed files with 4 additions and 3 deletions

View File

@@ -10,5 +10,5 @@ pub(crate) fn vec_into_raw_parts<T>(vec: Vec<T>) -> (*mut T, usize, usize) {
// - disable dropping the Vec with ManuallyDrop
// - extract ptr, len, and capacity using those methods
let mut vec = std::mem::ManuallyDrop::new(vec);
return (vec.as_mut_ptr(), vec.len(), vec.capacity());
(vec.as_mut_ptr(), vec.len(), vec.capacity())
}