aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorcc <cc@localhost>2025-08-28 02:07:47 -0700
committercc <cc@localhost>2025-08-28 02:09:21 -0700
commitd411b9e6a2b6c185921e2479ba5cd6e2010d5473 (patch)
treec230ab3cf2bb3db104a284e6c7058b1439a83753 /src/lib.rs
parentb2bb714ad8287a33a1ee399999e340471b0bb4b4 (diff)
Pin breaking update
Better trait
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 7278c45..552f74c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -8,7 +8,7 @@ pub(crate) fn flood<T: LabelU16 + PartialEq + Copy, R: LabelU16 + PartialEq + Co
from_color: T, to_color: R) {
let width = source.width;
let destination_color = destination[x + y * width];
- if destination_color != destination_color.zero() {
+ if !destination_color.is_zero() {
return;
}
let source_color = source.buffer[x + y * width];