Kaynağa Gözat

Fixed issue where unstable version of from_str_radix was being called instead of the local Num trait version

mitchmindtree 10 yıl önce
ebeveyn
işleme
3028d602e6
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/traits.rs

+ 1 - 1
src/traits.rs

@@ -50,7 +50,7 @@ macro_rules! float_trait_impl {
             fn from_str_radix(s: &str, radix: u32)
             fn from_str_radix(s: &str, radix: u32)
                               -> Result<Self, ::std::num::ParseFloatError>
                               -> Result<Self, ::std::num::ParseFloatError>
             {
             {
-                <$t>::from_str_radix(s, radix)
+                Num::from_str_radix(s, radix)
             }
             }
         }
         }
     )*)
     )*)