Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
andrews05 committed Mar 11, 2024
1 parent 9455825 commit 6c9a9bc
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 6c9a9bc

Please sign in to comment.