diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-24 15:58:27 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-05-01 16:44:36 -0700 |
| commit | 12910418fbfd1da76cfc43ffa7a15d0b0c4acb5b (patch) | |
| tree | c4939c074d8444c344b1d42f621d424f6ef2bcbe /src/libstd/error.rs | |
| parent | f3345cb0a70cdac95e126b611b355ab4d36ca3df (diff) | |
| download | rust-12910418fbfd1da76cfc43ffa7a15d0b0c4acb5b.tar.gz rust-12910418fbfd1da76cfc43ffa7a15d0b0c4acb5b.zip | |
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
Diffstat (limited to 'src/libstd/error.rs')
| -rw-r--r-- | src/libstd/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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() } } |
