Browse Source

Merge #142

142: Release 0.2.9 r=cuviper a=cuviper



Co-authored-by: Josh Stone <[email protected]>
bors[bot] 5 years ago
parent
commit
8eb83e242a
4 changed files with 17 additions and 3 deletions
  1. 1 1
      Cargo.toml
  2. 16 0
      RELEASES.md
  3. 0 1
      src/cast.rs
  4. 0 1
      src/identities.rs

+ 1 - 1
Cargo.toml

@@ -8,7 +8,7 @@ categories = ["algorithms", "science", "no-std"]
 license = "MIT/Apache-2.0"
 repository = "https://github.com/rust-num/num-traits"
 name = "num-traits"
-version = "0.2.8"
+version = "0.2.9"
 readme = "README.md"
 build = "build.rs"
 exclude = ["/ci/*", "/.travis.yml", "/bors.toml"]

+ 16 - 0
RELEASES.md

@@ -1,3 +1,19 @@
+# Release 0.2.9 (2019-11-12)
+
+- [A new optional `libm` dependency][99] enables the `Float` and `Real` traits
+  in `no_std` builds.
+- [The new `clamp_min` and `clamp_max`][122] limit minimum and maximum values
+  while preserving input `NAN`s.
+- [Fixed a panic in floating point `from_str_radix` on invalid signs][126].
+- Miscellaneous documentation updates.
+
+**Contributors**: @cuviper, @dingelish, @HeroicKatora, @jturner314, @ocstl,
+@Shnatsel, @termoshtt, @waywardmonkeys, @yoanlcq
+
+[99]: https://github.com/rust-num/num-traits/pull/99
+[122]: https://github.com/rust-num/num-traits/pull/122
+[126]: https://github.com/rust-num/num-traits/pull/126
+
 # Release 0.2.8 (2019-05-21)
 
 - [Fixed feature detection on `no_std` targets][116].

+ 0 - 1
src/cast.rs

@@ -86,7 +86,6 @@ pub trait ToPrimitive {
 
     /// Converts the value of `self` to a `u64`. If the value cannot be
     /// represented by a `u64`, then `None` is returned.
-    #[inline]
     fn to_u64(&self) -> Option<u64>;
 
     /// Converts the value of `self` to a `u128`. If the value cannot be

+ 0 - 1
src/identities.rs

@@ -25,7 +25,6 @@ pub trait Zero: Sized + Add<Self, Output = Self> {
     }
 
     /// Returns `true` if `self` is equal to the additive identity.
-    #[inline]
     fn is_zero(&self) -> bool;
 }