Skip to content

Commit

Permalink
Remove useless clone in Frame::from_indexed_pixels (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
moulins authored Dec 30, 2024
1 parent 51ea9b0 commit 86e076e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ impl Frame<'static> {
Frame {
width,
height,
buffer: Cow::Owned(pixels.clone()),
buffer: Cow::Owned(pixels),
palette: None,
transparent,
..Frame::default()
Expand Down

0 comments on commit 86e076e

Please sign in to comment.