Take palette by ref in Algorithm

This commit is contained in:
Joscha 2024-03-09 22:13:56 +01:00
parent 9464487c57
commit 243ec79f42
2 changed files with 6 additions and 6 deletions

View file

@ -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)
}
}