aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-04-18 07:29:44 +0100
committerAkshay <[email protected]>2021-04-18 07:29:44 +0100
commit81488c3ea8d66680f739cee087ad9aa7619f5e0e (patch)
tree5ef0edb9401ee05a1999db2088d69daf0e0bb6ee /src/app.rs
parent73514f48554dcd860f1c1c675d53c8d3ae6aa800 (diff)
clippy lint; add `get-pixel` primitive
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/app.rs b/src/app.rs
index 2e14dbc..5ba8fb1 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -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,