Skip to content

Commit

Permalink
misc: throw up the error
Browse files Browse the repository at this point in the history
  • Loading branch information
nichmor committed Feb 11, 2025
1 parent e28ca21 commit 87add40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/rattler_repodata_gateway/src/fetch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,10 @@ async fn stream_and_decode_to_file(
// Clone the file handle and create a hashing writer so we can compute a hash
// while the content is being written to disk.
let file = tokio_fs::File::from_std(fs_err::File::from_parts(
temp_file.as_file().try_clone()?,
temp_file
.as_file()
.try_clone()
.map_err(|err| FetchRepoDataError::IoError(err))?,

Check failure on line 731 in crates/rattler_repodata_gateway/src/fetch/mod.rs

View workflow job for this annotation

GitHub Actions / Format and Lint

redundant closure
temp_file.path(),
));
let mut hashing_file_writer = HashingWriter::<_, Blake2b256>::new(file);
Expand Down

0 comments on commit 87add40

Please sign in to comment.