diff options
author | Christian Duerr <contact@christianduerr.com> | 2022-10-12 04:40:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 07:40:46 +0300 |
commit | 21c75d9d94e1a338501d2011f17710ff5174ac01 (patch) | |
tree | 310d88754f399dc0fe4f8abdc68ba2d4097bdefd /alacritty/src/display/cursor.rs | |
parent | 182086f59c0148508c31d359eaee2cfef059f45c (diff) | |
download | r-alacritty-21c75d9d94e1a338501d2011f17710ff5174ac01.tar.gz r-alacritty-21c75d9d94e1a338501d2011f17710ff5174ac01.tar.bz2 r-alacritty-21c75d9d94e1a338501d2011f17710ff5174ac01.zip |
Fix clippy warnings
This patch applies all clippy lints currently present on the latest
clippy master than are compatible with our oldstable clippy (only
exception is the `_else(||` stuff).
Diffstat (limited to 'alacritty/src/display/cursor.rs')
-rw-r--r-- | alacritty/src/display/cursor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/display/cursor.rs b/alacritty/src/display/cursor.rs index 89b0bcde..8a4cc729 100644 --- a/alacritty/src/display/cursor.rs +++ b/alacritty/src/display/cursor.rs @@ -22,7 +22,7 @@ impl IntoRects for RenderableCursor { let mut width = size_info.cell_width(); let height = size_info.cell_height(); - let thickness = (thickness * width as f32).round().max(1.); + let thickness = (thickness * width).round().max(1.); if self.is_wide() { width *= 2.; |