diff --git a/src/lib.nr b/src/lib.nr index 8f2da50..c0c2cf2 100644 --- a/src/lib.nr +++ b/src/lib.nr @@ -1,6 +1,6 @@ mod utils; -pub use utils::{conditional_select, lt_f, DebugRandomEngine}; +pub use utils::{conditional_select, DebugRandomEngine, lt_f}; use std::collections::bounded_vec::BoundedVec; @@ -206,13 +206,10 @@ impl } } -impl From> for SubString { +impl From> for SubString { fn from(input: BoundedVec) -> Self { - Self::new( - input.storage(), - input.len() as u32 - ) - } + Self::new(input.storage(), input.len() as u32) + } } // ###################################################### @@ -420,13 +417,10 @@ impl StringBo } } -impl From> for StringBody { +impl From> for StringBody { fn from(input: BoundedVec) -> Self { - Self::new( - input.storage(), - input.len() as u32 - ) - } + Self::new(input.storage(), input.len() as u32) + } } /// Given an input byte array, convert into 31-byte chunks