From fca71af1dfd1fe8dbbddf39fbc9f80c7de58db39 Mon Sep 17 00:00:00 2001 From: EvilMuffinHa Date: Wed, 3 Aug 2022 00:11:50 -0400 Subject: [PATCH] bump to 0.2.1 --- Cargo.toml | 2 +- src/lib.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dcbc052..0826344 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smallint" -version = "0.2.0" +version = "0.2.1" edition = "2021" authors = ["artofrev"] description = "A library for optimized arbitrary precision integers." diff --git a/src/lib.rs b/src/lib.rs index 9693ea7..cc8fa0c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -63,21 +63,20 @@ enum SmallUintType { // TODO: add native operations for SmallInt and SmallUint -#[cfg(feature="num-bigint")] +#[cfg(feature = "num-bigint")] impl core::fmt::Debug for SmallInt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "{}", BigInt::from(self)) } } -#[cfg(feature="num-bigint")] +#[cfg(feature = "num-bigint")] impl core::fmt::Debug for SmallUint { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "{}", BigUint::from(self)) } } - impl Drop for SmallInt { fn drop(&mut self) { if let Self(SmallIntType::Heap((r, s))) = self { @@ -363,5 +362,4 @@ mod conversion_tests { (Sign::Plus, vec![5, 4, 8, 3, 2, 9, 3]) ); } - }