Skip to content

Commit ec9330b

Browse files
committed
refactor: Fix Clippy errors
1 parent 06fa789 commit ec9330b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ impl App {
9898
ErrorReport::TEXT
9999
};
100100

101-
fn error_only_reporter<Data: Size>(
101+
#[allow(clippy::extra_unused_type_parameters)]
102+
fn error_only_reporter<Data>(
102103
report_error: fn(ErrorReport),
103104
) -> ErrorOnlyReporter<fn(ErrorReport)> {
104105
ErrorOnlyReporter::new(report_error)

src/fs_tree_builder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ where
6767
path: root,
6868

6969
get_info: |path| {
70-
let stats = match symlink_metadata(&path) {
70+
let stats = match symlink_metadata(path) {
7171
Err(error) => {
7272
reporter.report(Event::EncounterError(ErrorReport {
7373
operation: SymlinkMetadata,
@@ -94,7 +94,6 @@ where
9494
}
9595
Ok(entries) => entries,
9696
}
97-
.into_iter()
9897
.filter_map(|entry| match entry {
9998
Err(error) => {
10099
reporter.report(Event::EncounterError(ErrorReport {

0 commit comments

Comments
 (0)