Переглянути джерело

Minor changes to silence warnings.

Sam Payson 10 роки тому
батько
коміт
609c2e6ef0
2 змінених файлів з 3 додано та 3 видалено
  1. 1 1
      src/lib.rs
  2. 2 2
      src/traits.rs

+ 1 - 1
src/lib.rs

@@ -44,7 +44,7 @@
 //!
 //! [newt]: https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method
 
-#![feature(slicing_syntax, collections, core, hash, std_misc)]
+#![feature(collections, core, hash, std_misc)]
 #![cfg_attr(test, deny(warnings))]
 #![cfg_attr(test, feature(test))]
 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

+ 2 - 2
src/traits.rs

@@ -283,8 +283,8 @@ bounded_impl!(i16, i16::MIN, i16::MAX);
 bounded_impl!(i32, i32::MIN, i32::MAX);
 bounded_impl!(i64, i64::MIN, i64::MAX);
 
-bounded_impl!(f32, f32::MIN_VALUE, f32::MAX_VALUE);
-bounded_impl!(f64, f64::MIN_VALUE, f64::MAX_VALUE);
+bounded_impl!(f32, f32::MIN, f32::MAX);
+bounded_impl!(f64, f64::MIN, f64::MAX);
 
 /// Saturating math operations
 pub trait Saturating {