Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jul 19, 2023
1 parent 21908ef commit 2fbbbde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bare_index.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::result_large_err)]
use crate::dedupe::DedupeContext;
use crate::dirs::get_index_details;
use crate::{path_max_byte_len, Crate, Error, IndexConfig};
Expand Down Expand Up @@ -299,7 +300,7 @@ impl Index {

fn object_at_path(&self, path: PathBuf) -> Result<gix::Object<'_>, GixError> {
let entry = self.tree()?.lookup_entry_by_path(&path)?
.ok_or_else(|| GixError::PathMissing { path })?;
.ok_or(GixError::PathMissing { path })?;
Ok(entry.object()?)
}

Expand Down

0 comments on commit 2fbbbde

Please sign in to comment.