From dea53e1b7ed7096d6db9485ea3a8bdeb04ad30a3 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 24 Oct 2021 12:02:22 -0400 Subject: Bump dependencies --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index fc7dfff..adb05b1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -326,7 +326,7 @@ impl App { self.get_colors(AllColors::new(r, g, b)) } SourceArg::Image(ref path) => { - let img = image::open(path)?.into_rgb(); + let img = image::open(path)?.into_rgb8(); self.width.get_or_insert(img.width()); self.height.get_or_insert(img.height()); self.get_colors(ImageColors::from(img)) @@ -372,7 +372,7 @@ impl App { match &self.args.frontier { FrontierArg::Image(ref path) => { - let img = image::open(path)?.into_rgb(); + let img = image::open(path)?.into_rgb8(); self.paint_on(colors, ImageFrontier::::new(&img)) } FrontierArg::Min => { -- cgit v1.2.3