From 97a2b2638d36fbd9f69c80bd146cdbe9d87e7bcc Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Sat, 17 Jan 2015 12:20:11 -0800 Subject: Remove Send bound from Error trait. --- src/libstd/io/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstd/io') diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index bab4dafd090..86afc6decab 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -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 for Box { - fn from_error(err: IoError) -> Box { +impl FromError for Box { + fn from_error(err: IoError) -> Box { box err } } -- cgit 1.4.1-3-g733a5