mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Remove unnecessary Send bound
This commit is contained in:
parent
82cd953c7c
commit
af5de855a3
@ -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> {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user