From 0642db9baab050da9c456263bcedbbe901ee9547 Mon Sep 17 00:00:00 2001 From: Trevor Spiteri Date: Thu, 29 Nov 2018 09:35:35 +0100 Subject: [PATCH] fmt --- src/display.rs | 4 ++-- src/wide_div.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/display.rs b/src/display.rs index 88a6424..96fdc0a 100644 --- a/src/display.rs +++ b/src/display.rs @@ -227,8 +227,8 @@ macro_rules! impl_fmt { )* }; } -impl_fmt!{ FixedU8(U8) FixedU16(U16) FixedU32(U32) FixedU64(U64) FixedU128(U128) } -impl_fmt!{ FixedI8(U8) FixedI16(U16) FixedI32(U32) FixedI64(U64) FixedI128(U128) } +impl_fmt! { FixedU8(U8) FixedU16(U16) FixedU32(U32) FixedU64(U64) FixedU128(U128) } +impl_fmt! { FixedI8(U8) FixedI16(U16) FixedI32(U32) FixedI64(U64) FixedI128(U128) } fn dec_int_digits(int_bits: u32) -> u32 { assert!(int_bits < 299); diff --git a/src/wide_div.rs b/src/wide_div.rs index ba9c511..8c665d3 100644 --- a/src/wide_div.rs +++ b/src/wide_div.rs @@ -83,7 +83,7 @@ macro_rules! div_half { )* }; } -div_half!{ u8: 8, u16: 16, u32: 32, u64: 64, u128: 128 } +div_half! { u8: 8, u16: 16, u32: 32, u64: 64, u128: 128 } trait NegAbs { type Abs; @@ -145,7 +145,7 @@ macro_rules! neg_abs { )* }; } -neg_abs!{ i8: u8, i16: u16, i32: u32, i64: u64, i128: u128 } +neg_abs! { i8: u8, i16: u16, i32: u32, i64: u64, i128: u128 } pub trait WideDivRem: Sized { fn div_rem_from(self, dividend: (Self, U)) -> ((Self, U), Self);