From 9b071e57ec967bfcc430a4934533725ee26b2442 Mon Sep 17 00:00:00 2001 From: GyulyVGC Date: Fri, 22 Nov 2024 23:49:14 +0100 Subject: [PATCH] fix clippy::pedantic lint --- src/gui/styles/scrollbar.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/gui/styles/scrollbar.rs b/src/gui/styles/scrollbar.rs index d3c5edca..c926055e 100644 --- a/src/gui/styles/scrollbar.rs +++ b/src/gui/styles/scrollbar.rs @@ -50,17 +50,12 @@ impl ScrollbarType { } #[allow(clippy::unused_self)] - fn hovered( - &self, - style: &StyleType, - is_mouse_over_x_scrollbar: bool, - is_mouse_over_y_scrollbar: bool, - ) -> Style { + fn hovered(&self, style: &StyleType, is_mouse_over_x: bool, is_mouse_over_y: bool) -> Style { let colors = style.get_palette(); let ext = style.get_extension(); let [horizontal_rail, vertical_rail] = - [is_mouse_over_x_scrollbar, is_mouse_over_y_scrollbar].map(|is_over| Rail { + [is_mouse_over_x, is_mouse_over_y].map(|is_over| Rail { background: Some(Background::Color(Color { a: ext.alpha_round_borders, ..ext.buttons_color