Skip to content

Commit 261b917

Browse files
committed
chore: fix clippy warnings
1 parent a4c2d90 commit 261b917

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bmap-rs/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)