From 59f8fb30a8e45b160739e4de6ff7c36895be5c6f Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Sun, 2 Nov 2025 13:47:13 -0600 Subject: [PATCH] rust/ftp: fix clippy warning error: implicitly casting the result of `from_raw_parts_mut` to `*mut [u8]` --> src/ftp/response.rs:107:31 --- rust/src/ftp/response.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/ftp/response.rs b/rust/src/ftp/response.rs index 098fe85318..3e21c5dd2f 100644 --- a/rust/src/ftp/response.rs +++ b/rust/src/ftp/response.rs @@ -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, ));