Take palette by ref in Algorithm
This commit is contained in:
parent
9464487c57
commit
243ec79f42
2 changed files with 6 additions and 6 deletions
|
|
@ -216,7 +216,7 @@ impl DitherCmd {
|
|||
.map(|c| c.0.into_format().into_color())
|
||||
.collect::<Vec<C>>();
|
||||
let palette = Palette::<C>::new(colors);
|
||||
A::run(image, palette)
|
||||
A::run(image, &palette)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue