Skip to content

Commit

Permalink
style: Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Feb 2, 2025
1 parent 56a4a95 commit 5392e8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libarx/src/arx_fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ const ROOT_ATTR: fuser::FileAttr = fuser::FileAttr {
flags: 0,
};

impl<'a, S: Stats> fuser::Filesystem for ArxFs<'a, S> {
impl<S: Stats> fuser::Filesystem for ArxFs<'_, S> {
fn lookup(
&mut self,
_req: &fuser::Request,
Expand Down
4 changes: 2 additions & 2 deletions libarx/src/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl jbk::reader::CompareTrait for EntryCompare<'_> {
.get_entry_reader(idx)
.expect("idx should be valid");
let entry_path = self.comparator.path_property.create(&reader)?;
Ok(entry_path.cmp(self.path_value)?)
entry_path.cmp(self.path_value)
}
fn ordered(&self) -> bool {
true
Expand Down Expand Up @@ -80,7 +80,7 @@ impl<'builder, Builder: BuilderTrait> ReadEntry<'builder, Builder> {
}
}

impl<'builder, Builder: BuilderTrait> Iterator for ReadEntry<'builder, Builder> {
impl<Builder: BuilderTrait> Iterator for ReadEntry<'_, Builder> {
type Item = Result<Builder::Entry, Builder::Error>;

fn next(&mut self) -> Option<Self::Item> {
Expand Down

0 comments on commit 5392e8d

Please sign in to comment.