From 12910418fbfd1da76cfc43ffa7a15d0b0c4acb5b Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 24 Apr 2015 15:58:27 -0700 Subject: std: Don't use a wrapper for the float error type Ensures that the same error type is propagated throughout. Unnecessary leakage of the internals is prevented through the usage of stability attributes. Closes #24748 --- src/libstd/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/error.rs') diff --git a/src/libstd/error.rs b/src/libstd/error.rs index 06e4d69818e..6d23df97000 100644 --- a/src/libstd/error.rs +++ b/src/libstd/error.rs @@ -147,7 +147,7 @@ impl Error for num::ParseIntError { #[stable(feature = "rust1", since = "1.0.0")] impl Error for num::ParseFloatError { fn description(&self) -> &str { - self.description() + self.__description() } } -- cgit 1.4.1-3-g733a5