Remove Send bound from Error trait.
This commit is contained in:
parent
89c4e3792d
commit
97a2b2638d
3 changed files with 8 additions and 8 deletions
|
|
@ -234,7 +234,7 @@ use error::{FromError, Error};
|
|||
use fmt;
|
||||
use int;
|
||||
use iter::{Iterator, IteratorExt};
|
||||
use marker::Sized;
|
||||
use marker::{Sized, Send};
|
||||
use mem::transmute;
|
||||
use ops::FnOnce;
|
||||
use option::Option;
|
||||
|
|
@ -363,8 +363,8 @@ impl Error for IoError {
|
|||
}
|
||||
}
|
||||
|
||||
impl FromError<IoError> for Box<Error> {
|
||||
fn from_error(err: IoError) -> Box<Error> {
|
||||
impl FromError<IoError> for Box<Error + Send> {
|
||||
fn from_error(err: IoError) -> Box<Error + Send> {
|
||||
box err
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue