File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ async fn copy_remote_input(source: Url, destination: PathBuf) -> Result<()> {
241241 let res = setup_remote_input ( source) . await ?;
242242 let stream = res
243243 . bytes_stream ( )
244- . map_err ( |e| std:: io:: Error :: new ( std :: io :: ErrorKind :: Other , e ) )
244+ . map_err ( std:: io:: Error :: other )
245245 . into_async_read ( ) ;
246246 let reader = GzipDecoder :: new ( stream) ;
247247 let mut input = AsyncDiscarder :: new ( reader) ;
@@ -291,7 +291,7 @@ async fn copy_remote_input_nobmap(source: Url, destination: PathBuf) -> Result<(
291291 let res = setup_remote_input ( source) . await ?;
292292 let stream = res
293293 . bytes_stream ( )
294- . map_err ( |e| std:: io:: Error :: new ( std :: io :: ErrorKind :: Other , e ) )
294+ . map_err ( std:: io:: Error :: other )
295295 . into_async_read ( ) ;
296296 let reader = GzipDecoder :: new ( stream) ;
297297 let mut input = AsyncDiscarder :: new ( reader) ;
You can’t perform that action at this time.
0 commit comments