From 77f69b25ba5f4829e0c6fef692c94a38cc388abe Mon Sep 17 00:00:00 2001 From: Max Verevkin Date: Fri, 1 Apr 2022 21:55:35 +0300 Subject: fix some clippy lints, ignore others --- src/text.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/text.rs') diff --git a/src/text.rs b/src/text.rs index eefbd48..a1d2e48 100644 --- a/src/text.rs +++ b/src/text.rs @@ -118,12 +118,12 @@ impl ComputedText { layout.set_height(text_height as i32 * pango::SCALE); if let Some(bg) = options.bg_color { - bg.apply(&context); + bg.apply(context); context.rectangle(0.0, 0.0, self.width, options.bar_height); context.fill().unwrap(); } - options.fg_color.apply(&context); + options.fg_color.apply(context); context.translate( text.attr.padding_left, (options.bar_height - self.height) * 0.5, -- cgit v1.3.1