diff --git a/framework/base/src/types/heap/boxed_bytes.rs b/framework/base/src/types/heap/boxed_bytes.rs index 3bc0d690c6..336b0874a8 100644 --- a/framework/base/src/types/heap/boxed_bytes.rs +++ b/framework/base/src/types/heap/boxed_bytes.rs @@ -1,4 +1,9 @@ -use alloc::{alloc::{alloc, Layout, realloc}, boxed::Box, vec, vec::Vec}; +use alloc::{ + alloc::{alloc, realloc, Layout}, + boxed::Box, + vec, + vec::Vec, +}; use crate::{ abi::{TypeAbi, TypeAbiFrom, TypeName}, diff --git a/framework/base/src/types/managed/wrapped/managed_vec_item_payload.rs b/framework/base/src/types/managed/wrapped/managed_vec_item_payload.rs index 4d544e8d75..07adc31a08 100644 --- a/framework/base/src/types/managed/wrapped/managed_vec_item_payload.rs +++ b/framework/base/src/types/managed/wrapped/managed_vec_item_payload.rs @@ -76,7 +76,7 @@ impl ManagedVecItemPayloadAdd } /// Replaces a const generic expression. -/// +/// /// Remove once const generic expressions are stabilized in Rust. macro_rules! payload_add { ($dec1:expr, $dec2:expr, $result_add:expr) => { diff --git a/tools/payload-macro-generator/src/main.rs b/tools/payload-macro-generator/src/main.rs index 6991a6816e..12a0d4c581 100644 --- a/tools/payload-macro-generator/src/main.rs +++ b/tools/payload-macro-generator/src/main.rs @@ -8,7 +8,7 @@ const MAX_X: usize = 48; const MAX_Y: usize = 128; /// Generates the payload_add! macros in the ManagedVecItem implem,entation. -/// +/// /// TODO: remove once generic const expressions are stabilized in Rust. fn main() -> io::Result<()> { let mut file = File::create("output.rs")?; @@ -17,11 +17,7 @@ fn main() -> io::Result<()> { for x in MIN..=MAX_X { for y in MIN..=MAX_Y { let sum = x + y; - writeln!( - file, - "payload_add!({}usize, {}usize, {}usize);", - x, y, sum - )?; + writeln!(file, "payload_add!({}usize, {}usize, {}usize);", x, y, sum)?; } }