Skip to content

Commit af5de85

Browse files
committed
Remove unnecessary Send bound
1 parent 82cd953 commit af5de85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/std/src/sync/mpmc/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl<T> fmt::Display for SendTimeoutError<T> {
3535
}
3636
}
3737

38-
impl<T: Send> error::Error for SendTimeoutError<T> {}
38+
impl<T> error::Error for SendTimeoutError<T> {}
3939

4040
impl<T> From<SendError<T>> for SendTimeoutError<T> {
4141
fn from(err: SendError<T>) -> SendTimeoutError<T> {

library/std/src/sync/mpsc/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ impl<T> fmt::Display for SendError<T> {
11241124
}
11251125

11261126
#[stable(feature = "rust1", since = "1.0.0")]
1127-
impl<T: Send> error::Error for SendError<T> {
1127+
impl<T> error::Error for SendError<T> {
11281128
#[allow(deprecated)]
11291129
fn description(&self) -> &str {
11301130
"sending on a closed channel"
@@ -1152,7 +1152,7 @@ impl<T> fmt::Display for TrySendError<T> {
11521152
}
11531153

11541154
#[stable(feature = "rust1", since = "1.0.0")]
1155-
impl<T: Send> error::Error for TrySendError<T> {
1155+
impl<T> error::Error for TrySendError<T> {
11561156
#[allow(deprecated)]
11571157
fn description(&self) -> &str {
11581158
match *self {

0 commit comments

Comments
 (0)