Skip to content

Commit f8cf38f

Browse files
committed
lints
1 parent 623da36 commit f8cf38f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

crates/lib/src/install.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ where
9898
}
9999
});
100100

101-
let stream = stream
102-
.map_err(|e| futures::io::Error::new(futures::io::ErrorKind::Other, e))
103-
.into_async_read();
101+
let stream = stream.map_err(futures::io::Error::other).into_async_read();
104102
let stream = stream.compat();
105103

106104
// Step 2: Create a XZ decoder

crates/lib/src/sync.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ async fn download_and_extract_pantry(url: &str, dest: &PathBuf) -> Result<(), Bo
5858

5959
let stream = rsp.bytes_stream();
6060

61-
let stream = stream
62-
.map_err(|e| futures::io::Error::new(futures::io::ErrorKind::Other, e))
63-
.into_async_read();
61+
let stream = stream.map_err(futures::io::Error::other).into_async_read();
6462
let stream = stream.compat();
6563

6664
let decoder = XzDecoder::new(stream);

0 commit comments

Comments
 (0)