Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
playX18 committed Oct 22, 2024
1 parent a85e2b0 commit ef1c080
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions gstd/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
}

Expand Down
3 changes: 1 addition & 2 deletions runtime-interface/sandbox/src/detail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
};
Expand Down

0 comments on commit ef1c080

Please sign in to comment.