summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index ce54939..ae8c35d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -355,7 +355,10 @@ impl App {
}
}
- fn paint<C: ColorSpace>(&mut self, colors: Vec<Rgb8>) -> AppResult<()> {
+ fn paint<C: ColorSpace>(&mut self, colors: Vec<Rgb8>) -> AppResult<()>
+ where
+ C::Value: PartialOrd<C::Distance>,
+ {
let width = self.width.unwrap();
let height = self.height.unwrap();
let x0 = self.args.x0.unwrap_or(width / 2);