diff --git a/Cargo.toml b/Cargo.toml index 1f82c45..3f3d730 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bnum" -version = "0.12.0" +version = "0.12.1" authors = ["isaac-holt "] edition = "2021" license = "MIT OR Apache-2.0" diff --git a/README.md b/README.md index e062f5b..b3f5ce4 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,13 @@ This crate uses Rust's const generics to allow creation of integers of arbitrary To install and use `bnum`, simply add the following line to your `Cargo.toml` file in the `[dependencies]` section: ```toml -bnum = "0.12.0" +bnum = "0.12.1" ``` Or, to enable various `bnum` features as well, add for example this line instead: ```toml -bnum = { version = "0.12.0", features = ["rand"] } # enables the "rand" feature +bnum = { version = "0.12.1", features = ["rand"] } # enables the "rand" feature ``` ## Example Usage diff --git a/src/buint/cast.rs b/src/buint/cast.rs index 57b4367..a78a349 100644 --- a/src/buint/cast.rs +++ b/src/buint/cast.rs @@ -86,6 +86,7 @@ macro_rules! as_buint { use crate::cast::CastFrom; use crate::doc; use crate::ExpType; +#[allow(unused_imports)] use crate::cast::float::{FloatMantissa, CastUintFromFloatHelper, CastFloatFromUintHelper}; macro_rules! cast { diff --git a/src/buint/numtraits.rs b/src/buint/numtraits.rs index 9cfb051..5a13eac 100644 --- a/src/buint/numtraits.rs +++ b/src/buint/numtraits.rs @@ -56,7 +56,7 @@ use num_traits::{ AsPrimitive, Bounded, CheckedAdd, CheckedDiv, CheckedMul, CheckedNeg, CheckedRem, CheckedShl, CheckedShr, CheckedSub, CheckedEuclid, Euclid, FromPrimitive, MulAdd, MulAddAssign, Num, One, /*ConstOne,*/ Pow, PrimInt, Saturating, SaturatingAdd, SaturatingMul, SaturatingSub, ToPrimitive, Unsigned, WrappingAdd, - WrappingMul, WrappingNeg, WrappingShl, WrappingShr, WrappingSub, Zero, ConstZero + WrappingMul, WrappingNeg, WrappingShl, WrappingShr, WrappingSub, Zero, //ConstZero }; use crate::cast::CastFrom;