Remove unnecessary Send bound

This commit is contained in:
Gil Shoshan 2023-05-03 15:47:11 +03:00
parent 82cd953c7c
commit af5de855a3
2 changed files with 3 additions and 3 deletions

View File

@ -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> {

View File

@ -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"
@ -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 {