rust/ftp: fix clippy warning

error: implicitly casting the result of `from_raw_parts_mut` to `*mut [u8]`
        --> src/ftp/response.rs:107:31
pull/14332/head
Jason Ish 10 months ago committed by Victor Julien
parent 745e972348
commit 59f8fb30a8

@ -104,7 +104,7 @@ pub unsafe extern "C" fn SCFTPFreeResponseLine(response: *mut FTPResponseLine) {
}
if !response.response.is_null() {
let _ = Box::from_raw(std::slice::from_raw_parts_mut(
let _ = Box::from_raw(std::ptr::slice_from_raw_parts_mut(
response.response,
response.length,
));

Loading…
Cancel
Save