diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-02-12 12:32:37 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-02-18 10:25:28 -0500 |
| commit | 60f507be45f7ae8f5ff119316def0ccb3735a479 (patch) | |
| tree | 29699a2d7885c825ee0a011ebb31aacf7c97d864 /src/libstd | |
| parent | 872ce479550a3d805babb0ca409dfc3cf6f52309 (diff) | |
| download | rust-60f507be45f7ae8f5ff119316def0ccb3735a479.tar.gz rust-60f507be45f7ae8f5ff119316def0ccb3735a479.zip | |
Fallout: remove unused type and region parameters.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/old_io/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/old_io/mod.rs b/src/libstd/old_io/mod.rs index 4bd0662232f..9655da92e56 100644 --- a/src/libstd/old_io/mod.rs +++ b/src/libstd/old_io/mod.rs @@ -433,7 +433,7 @@ pub enum IoErrorKind { } /// A trait that lets you add a `detail` to an IoError easily -trait UpdateIoError<T> { +trait UpdateIoError { /// Returns an IoError with updated description and detail fn update_err<D>(self, desc: &'static str, detail: D) -> Self where D: FnOnce(&IoError) -> String; @@ -446,7 +446,7 @@ trait UpdateIoError<T> { fn update_desc(self, desc: &'static str) -> Self; } -impl<T> UpdateIoError<T> for IoResult<T> { +impl<T> UpdateIoError for IoResult<T> { fn update_err<D>(self, desc: &'static str, detail: D) -> IoResult<T> where D: FnOnce(&IoError) -> String, { |
