From 6e293d029bd60f5565bb18629e3baf2d049e53cf Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Wed, 24 Aug 2022 19:29:00 -0700 Subject: *cargo fmt --- src/mem/types.rs | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'src/mem/types.rs') diff --git a/src/mem/types.rs b/src/mem/types.rs index 04522bc..ed22132 100644 --- a/src/mem/types.rs +++ b/src/mem/types.rs @@ -1,54 +1,54 @@ /// # u256 struct /// /// 256 bit size field -#[derive(Copy,Clone)] -pub struct U256(u128,u128); +#[derive(Copy, Clone)] +pub struct U256(u128, u128); impl U256 { - pub const fn new() -> Self { - U256(0,0) - } + pub const fn new() -> Self { + U256(0, 0) + } } /// # u512 struct /// /// 512 bit size field -#[derive(Copy,Clone)] -pub struct U512(U256,U256); +#[derive(Copy, Clone)] +pub struct U512(U256, U256); impl U512 { - pub const fn new() -> Self { - U512(U256::new(), U256::new()) - } + pub const fn new() -> Self { + U512(U256::new(), U256::new()) + } } /// # u1024 struct /// /// 1024 bit size field -#[derive(Copy,Clone)] -pub struct U1024(U512,U512); +#[derive(Copy, Clone)] +pub struct U1024(U512, U512); impl U1024 { - pub const fn new() -> Self { - U1024(U512::new(), U512::new()) - } + pub const fn new() -> Self { + U1024(U512::new(), U512::new()) + } } /// # u2048 struct /// /// 2048 bit size field -#[derive(Copy,Clone)] -pub struct U2048(U1024,U1024); +#[derive(Copy, Clone)] +pub struct U2048(U1024, U1024); impl U2048 { - pub const fn new() -> Self { - U2048(U1024::new(), U1024::new()) - } + pub const fn new() -> Self { + U2048(U1024::new(), U1024::new()) + } } /// # u4096 struct /// /// 4096 bit size field -#[derive(Copy,Clone)] -pub struct U4096(U2048,U2048); +#[derive(Copy, Clone)] +pub struct U4096(U2048, U2048); impl U4096 { - pub const fn new() -> Self { - U4096(U2048::new(), U2048::new()) - } + pub const fn new() -> Self { + U4096(U2048::new(), U2048::new()) + } } -- cgit v1.2.1