diff options
| author | Max Verevkin <maxxverrr@gmail.com> | 2022-04-01 21:55:35 +0300 |
|---|---|---|
| committer | Max Verevkin <maxxverrr@gmail.com> | 2022-04-01 22:00:32 +0300 |
| commit | 77f69b25ba5f4829e0c6fef692c94a38cc388abe (patch) | |
| tree | e6d61eba45ad8490510b0ab8e5dd5467037534a7 /src/text.rs | |
| parent | 7bcaa341b8685ba411d206c1a89dc3ca77aa71bb (diff) | |
| download | i3bar-mango-77f69b25ba5f4829e0c6fef692c94a38cc388abe.tar.gz | |
fix some clippy lints, ignore others
Diffstat (limited to 'src/text.rs')
| -rw-r--r-- | src/text.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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, |
