Skip to content

Commit

Permalink
another fmt and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts committed Sep 23, 2024
1 parent 6314cff commit ffe7ee5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/rattler_repodata_gateway/src/fetch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ pub async fn fetch_repo_data(
cache_state
.to_path(&cache_state_path)
.map(|_| cache_state)
.map_err(|e| FetchRepoDataError::FailedToWriteCacheState(e))
.map_err(FetchRepoDataError::FailedToWriteCacheState)
})
.await??;

Expand Down
2 changes: 1 addition & 1 deletion crates/rattler_repodata_gateway/src/sparse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl SparseRepoData {
path: impl AsRef<Path>,
patch_function: Option<fn(&mut PackageRecord)>,
) -> Result<Self, io::Error> {
let file = fs::File::open(path)?;
let file = fs::File::open(path.as_ref().to_owned())?;
let memory_map = unsafe { memmap2::Mmap::map(&file) }?;
Ok(SparseRepoData {
inner: SparseRepoDataInner::Memmapped(
Expand Down

0 comments on commit ffe7ee5

Please sign in to comment.