Skip to content

Commit

Permalink
Merge pull request #455 from jiangliu/clippy
Browse files Browse the repository at this point in the history
storage: fix clippy warnings
  • Loading branch information
liubogithub authored May 28, 2022
2 parents bd34996 + bb9a67d commit 143a411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion storage/src/cache/cachedfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ impl FileCacheEntry {
self.adjust_buffer_for_dio(buf)
}
trace!("persist_chunk idx {}", idx);
Self::persist_chunk(&self.file, offset, &buf).map_err(|e| {
Self::persist_chunk(&self.file, offset, buf).map_err(|e| {
eio!(format!("do_fetch_chunk failed to persist {:?}", e))
})?;
}
Expand Down
2 changes: 1 addition & 1 deletion storage/src/cache/fscache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl FsCacheMgr {
}

let entry = FileCacheEntry::new_fs_cache(
&self,
self,
blob.clone(),
self.prefetch_config.clone(),
self.runtime.clone(),
Expand Down

0 comments on commit 143a411

Please sign in to comment.