Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
andrews05 authored and AlexTMjugador committed Mar 18, 2024
1 parent 3e3c027 commit 2c3321b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/png/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ impl PngImage {
if size < best_size {
best_size = size;
std::mem::swap(&mut best_line, &mut f_buf);
best_line_raw = line_data.clone();
best_line_raw.clone_from(&line_data);
}
}
}
Expand All @@ -402,7 +402,7 @@ impl PngImage {
if size > best_size {
best_size = size;
std::mem::swap(&mut best_line, &mut f_buf);
best_line_raw = line_data.clone();
best_line_raw.clone_from(&line_data);
}
}
}
Expand All @@ -421,7 +421,7 @@ impl PngImage {
if size < best_size {
best_size = size;
std::mem::swap(&mut best_line, &mut f_buf);
best_line_raw = line_data.clone();
best_line_raw.clone_from(&line_data);
}
}
}
Expand All @@ -441,7 +441,7 @@ impl PngImage {
if size > best_size {
best_size = size;
std::mem::swap(&mut best_line, &mut f_buf);
best_line_raw = line_data.clone();
best_line_raw.clone_from(&line_data);
}
}
}
Expand All @@ -466,7 +466,7 @@ impl PngImage {
if size < best_size {
best_size = size;
std::mem::swap(&mut best_line, &mut f_buf);
best_line_raw = line_data.clone();
best_line_raw.clone_from(&line_data);
}
}
filtered.resize(line_start, 0);
Expand Down

0 comments on commit 2c3321b

Please sign in to comment.