diff options
author | cc <cc@localhost> | 2025-08-28 02:07:47 -0700 |
---|---|---|
committer | cc <cc@localhost> | 2025-08-28 02:09:21 -0700 |
commit | d411b9e6a2b6c185921e2479ba5cd6e2010d5473 (patch) | |
tree | c230ab3cf2bb3db104a284e6c7058b1439a83753 /src/lib.rs | |
parent | b2bb714ad8287a33a1ee399999e340471b0bb4b4 (diff) |
Pin breaking update
Better trait
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |