Skip to content

Commit

Permalink
Clippy workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
hpwxf committed Feb 26, 2023
1 parent c5df43a commit 09e6fb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ pub fn tree(
grid.fit_into_columns(flags.blocks.0.len()).to_string()
}

#[allow(clippy::too_many_arguments)] // should wrap flags, colors, icons, git_symbols into one struct
fn inner_display_grid(
display_option: &DisplayOption,
metas: &[Meta],
Expand Down Expand Up @@ -219,6 +220,7 @@ fn add_header(flags: &Flags, cells: &[Cell], grid: &mut Grid) {
}
}

#[allow(clippy::too_many_arguments)]
fn inner_display_tree(
metas: &[Meta],
flags: &Flags,
Expand Down Expand Up @@ -309,6 +311,7 @@ fn display_folder_path(meta: &Meta) -> String {
format!("\n{}:\n", meta.path.to_string_lossy())
}

#[allow(clippy::too_many_arguments)]
fn get_output(
meta: &Meta,
colors: &Colors,
Expand Down

0 comments on commit 09e6fb1

Please sign in to comment.