Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
acj committed Nov 9, 2023
1 parent 2a48a9a commit 5c19bdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ where
{
let lines: Vec<AnnotatedLine> = stream
.lines()
.filter_map(|x| x.ok())
.map_while(|x| x.ok())
.inspect(|line| {
if echo {
println!("{}", line);
Expand Down Expand Up @@ -136,7 +136,7 @@ fn latency_display_width(max_inter_line_latency: chrono::Duration, latency_unit:
latency_display_width
}

fn max_inter_line_latency(lines: &Vec<AnnotatedLine>) -> chrono::Duration {
fn max_inter_line_latency(lines: &[AnnotatedLine]) -> chrono::Duration {
let mut max_inter_line_latency = chrono::Duration::milliseconds(1);
for (index, line) in lines.iter().enumerate() {
if index == 0 {
Expand Down

0 comments on commit 5c19bdf

Please sign in to comment.