mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-04 02:24:11 +02:00
clippy
This commit is contained in:
parent
169134bd53
commit
b5be612307
3 changed files with 20 additions and 21 deletions
|
|
@ -29,11 +29,11 @@ pub fn match_list(app: &App) -> Table {
|
|||
Constraint::Min(10),
|
||||
];
|
||||
|
||||
let all = log_row(&app.all, &app, "All lines");
|
||||
let all = log_row(&app.all, app, "All lines");
|
||||
let unmatched = if app.unmatched.lines.is_empty() {
|
||||
Either::Right(empty())
|
||||
} else {
|
||||
Either::Left(once(log_row(&app.unmatched, &app, "Unmatched lines")))
|
||||
Either::Left(once(log_row(&app.unmatched, app, "Unmatched lines")))
|
||||
};
|
||||
|
||||
Table::new(
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ pub fn raw_logs(app: &App, lines: &[usize]) -> Table<'static> {
|
|||
Constraint::Percentage(100),
|
||||
Constraint::Length(27),
|
||||
];
|
||||
let table = Table::new(lines.map(|line| log_row(line)), widths)
|
||||
let table = Table::new(lines.map(log_row), widths)
|
||||
.header(header)
|
||||
.highlight_style(TABLE_SELECTED_STYLE)
|
||||
.highlight_spacing(HighlightSpacing::Always);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue