From f6b15f8999a8f7ac48a0530156daecf6d2e7a1cd Mon Sep 17 00:00:00 2001 From: Joshua Trujillo Date: Mon, 25 Nov 2024 16:16:11 +0000 Subject: [PATCH] fmt --- src/lib.nr | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) 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