@@ -27,7 +27,7 @@ macro_rules! impl_buffered_source {
2727 Ok ( ( ) )
2828 } ,
2929 Err ( ref e) if e. kind( ) == io:: ErrorKind :: Interrupted => continue ,
30- Err ( e) => Err ( Error :: Io ( e) ) ,
30+ Err ( e) => Err ( Error :: Io ( e. into ( ) ) ) ,
3131 } ;
3232 }
3333 }
@@ -43,7 +43,7 @@ macro_rules! impl_buffered_source {
4343 Ok ( None )
4444 } ,
4545 Err ( ref e) if e. kind( ) == io:: ErrorKind :: Interrupted => continue ,
46- Err ( e) => Err ( Error :: Io ( e) ) ,
46+ Err ( e) => Err ( Error :: Io ( e. into ( ) ) ) ,
4747 } ;
4848 }
4949 }
@@ -69,7 +69,7 @@ macro_rules! impl_buffered_source {
6969 Err ( ref e) if e. kind( ) == io:: ErrorKind :: Interrupted => continue ,
7070 Err ( e) => {
7171 * position += read;
72- return Err ( Error :: Io ( e) ) ;
72+ return Err ( Error :: Io ( e. into ( ) ) ) ;
7373 }
7474 } ;
7575
@@ -136,7 +136,7 @@ macro_rules! impl_buffered_source {
136136 Err ( ref e) if e. kind( ) == io:: ErrorKind :: Interrupted => continue ,
137137 Err ( e) => {
138138 * position += read;
139- return Err ( Error :: Io ( e) ) ;
139+ return Err ( Error :: Io ( e. into ( ) ) ) ;
140140 }
141141 }
142142 }
@@ -181,7 +181,7 @@ macro_rules! impl_buffered_source {
181181 Err ( ref e) if e. kind( ) == io:: ErrorKind :: Interrupted => continue ,
182182 Err ( e) => {
183183 * position += read;
184- return Err ( Error :: Io ( e) ) ;
184+ return Err ( Error :: Io ( e. into ( ) ) ) ;
185185 }
186186 } ;
187187 }
@@ -207,7 +207,7 @@ macro_rules! impl_buffered_source {
207207 }
208208 }
209209 Err ( ref e) if e. kind( ) == io:: ErrorKind :: Interrupted => continue ,
210- Err ( e) => Err ( Error :: Io ( e) ) ,
210+ Err ( e) => Err ( Error :: Io ( e. into ( ) ) ) ,
211211 } ;
212212 }
213213 }
@@ -232,7 +232,7 @@ macro_rules! impl_buffered_source {
232232 Ok ( n) if n. is_empty( ) => Ok ( None ) ,
233233 Ok ( n) => Ok ( Some ( n[ 0 ] ) ) ,
234234 Err ( ref e) if e. kind( ) == io:: ErrorKind :: Interrupted => continue ,
235- Err ( e) => Err ( Error :: Io ( e) ) ,
235+ Err ( e) => Err ( Error :: Io ( e. into ( ) ) ) ,
236236 } ;
237237 }
238238 }
0 commit comments