Simplify error mapping in download_file
Some checks failed
Build docker image / Build-Docker-Image (push) Has been cancelled
rust-clippy analyze / Run rust-clippy analyzing (push) Has been cancelled

This commit is contained in:
2025-10-14 18:06:56 +02:00
parent 788a6d232e
commit e1af1c2623

View File

@@ -55,7 +55,7 @@ async fn download_file(filename_str: &str) -> Result<(), Box<dyn std::error::Err
let data = response let data = response
.bytes_stream() .bytes_stream()
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e)) .map_err(std::io::Error::other)
.into_async_read(); .into_async_read();
let decoder = GzipDecoder::new(data); let decoder = GzipDecoder::new(data);