diff --git a/gstd/src/prelude.rs b/gstd/src/prelude.rs index cef7977acb3..6b45123eb5a 100644 --- a/gstd/src/prelude.rs +++ b/gstd/src/prelude.rs @@ -61,12 +61,7 @@ pub mod collections { /// /// [`alloc::ffi`]: ::alloc::ffi pub mod ffi { - pub use ::alloc::ffi::{ - FromVecWithNulError, - IntoStringError, - NulError, - CString - }; + pub use ::alloc::ffi::{CString, FromVecWithNulError, IntoStringError, NulError}; pub use core::ffi::*; } diff --git a/runtime-interface/sandbox/src/detail.rs b/runtime-interface/sandbox/src/detail.rs index bcae5a0eae2..e30eb672d6e 100644 --- a/runtime-interface/sandbox/src/detail.rs +++ b/runtime-interface/sandbox/src/detail.rs @@ -484,7 +484,6 @@ pub fn memory_new(context: &mut dyn FunctionContext, initial: u32, maximum: u32) method_result } - pub fn memory_set( context: &mut dyn FunctionContext, memory_idx: u32, @@ -499,7 +498,7 @@ pub fn memory_set( sp_wasm_interface::with_caller_mut(context, |caller| { trace("memory_set", caller); - let Ok(buffer) = read_memory(&mut* caller, val_ptr, val_len) else { + let Ok(buffer) = read_memory(&mut *caller, val_ptr, val_len) else { method_result = sandbox_env::env::ERR_OUT_OF_BOUNDS; return; };