Skip to content

Commit

Permalink
Remove Error::cause impls equal to deafult impl
Browse files Browse the repository at this point in the history
faern committed Oct 13, 2019
1 parent cd0e4c3 commit b8e7f76
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/libstd/sync/mpsc/mod.rs
Original file line number Diff line number Diff line change
@@ -1581,10 +1581,6 @@ impl<T: Send> error::Error for SendError<T> {
fn description(&self) -> &str {
"sending on a closed channel"
}

fn cause(&self) -> Option<&dyn error::Error> {
None
}
}

#[stable(feature = "rust1", since = "1.0.0")]
@@ -1624,10 +1620,6 @@ impl<T: Send> error::Error for TrySendError<T> {
}
}
}

fn cause(&self) -> Option<&dyn error::Error> {
None
}
}

#[stable(feature = "mpsc_error_conversions", since = "1.24.0")]
@@ -1652,10 +1644,6 @@ impl error::Error for RecvError {
fn description(&self) -> &str {
"receiving on a closed channel"
}

fn cause(&self) -> Option<&dyn error::Error> {
None
}
}

#[stable(feature = "rust1", since = "1.0.0")]
@@ -1685,10 +1673,6 @@ impl error::Error for TryRecvError {
}
}
}

fn cause(&self) -> Option<&dyn error::Error> {
None
}
}

#[stable(feature = "mpsc_error_conversions", since = "1.24.0")]
@@ -1726,10 +1710,6 @@ impl error::Error for RecvTimeoutError {
}
}
}

fn cause(&self) -> Option<&dyn error::Error> {
None
}
}

#[stable(feature = "mpsc_error_conversions", since = "1.24.0")]

0 comments on commit b8e7f76

Please sign in to comment.