From ae6418edf374c7746851673640b6ed54269d643d Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 8 Sep 2021 23:40:44 +0200 Subject: [PATCH] clippy fix --- egui/src/response.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/egui/src/response.rs b/egui/src/response.rs index 04633a8e..f9277a4c 100644 --- a/egui/src/response.rs +++ b/egui/src/response.rs @@ -358,12 +358,12 @@ impl Response { return false; } - if self.ctx.style().interaction.show_tooltips_only_when_still { - if !self.ctx.input().pointer.is_still() { - // wait for mouse to stop - self.ctx.request_repaint(); - return false; - } + if self.ctx.style().interaction.show_tooltips_only_when_still + && !self.ctx.input().pointer.is_still() + { + // wait for mouse to stop + self.ctx.request_repaint(); + return false; } // We don't want tooltips of things while we are dragging them,