Skip to content

Commit

Permalink
Remove unnecessary Send bound
Browse files Browse the repository at this point in the history
  • Loading branch information
GilShoshan94 committed May 3, 2023
1 parent 82cd953 commit af5de85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library/std/src/sync/mpmc/error.rs
Expand Up @@ -35,7 +35,7 @@ impl<T> fmt::Display for SendTimeoutError<T> {
}
}

impl<T: Send> error::Error for SendTimeoutError<T> {}
impl<T> error::Error for SendTimeoutError<T> {}

impl<T> From<SendError<T>> for SendTimeoutError<T> {
fn from(err: SendError<T>) -> SendTimeoutError<T> {
Expand Down
4 changes: 2 additions & 2 deletions library/std/src/sync/mpsc/mod.rs
Expand Up @@ -1124,7 +1124,7 @@ impl<T> fmt::Display for SendError<T> {
}

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

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

0 comments on commit af5de85

Please sign in to comment.