Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Fix clippy warning #106

Merged
merged 1 commit into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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