Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Aug 1, 2022
1 parent 07168c7 commit 763cec8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git-ref/src/store/file/packed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ pub(crate) mod modifiable {
pub(crate) fn force_refresh_packed_buffer(&self) -> Result<(), packed::buffer::open::Error> {
git_features::fs::Snapshot::force_refresh(&self.packed, || {
let modified = self.packed_refs_path().metadata()?.modified()?;
self.open_packed_buffer()
.and_then(|packed| Ok(Some(modified).zip(packed)))
self.open_packed_buffer().map(|packed| Some(modified).zip(packed))
})
}
pub(crate) fn assure_packed_refs_uptodate(
Expand Down

0 comments on commit 763cec8

Please sign in to comment.