diff options
author | Akshay <[email protected]> | 2021-04-18 07:29:44 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-04-18 07:29:44 +0100 |
commit | 81488c3ea8d66680f739cee087ad9aa7619f5e0e (patch) | |
tree | 5ef0edb9401ee05a1999db2088d69daf0e0bb6ee /src/app.rs | |
parent | 73514f48554dcd860f1c1c675d53c8d3ae6aa800 (diff) |
clippy lint; add `get-pixel` primitive
Diffstat (limited to 'src/app.rs')
-rw-r--r-- | src/app.rs | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -832,13 +832,7 @@ impl<'ctx> AppState<'ctx> { | |||
832 | end, | 832 | end, |
833 | active_end, | 833 | active_end, |
834 | }); | 834 | }); |
835 | } else if end.is_none() { | 835 | } else if end.is_none() || active_end { |
836 | self.brush = Brush::RectSelect(RectSelectBrush { | ||
837 | start, | ||
838 | end: contact, | ||
839 | active_end, | ||
840 | }); | ||
841 | } else if active_end { | ||
842 | self.brush = Brush::RectSelect(RectSelectBrush { | 836 | self.brush = Brush::RectSelect(RectSelectBrush { |
843 | start, | 837 | start, |
844 | end: contact, | 838 | end: contact, |