aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/display/cursor.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2022-10-12 04:40:46 +0000
committerGitHub <noreply@github.com>2022-10-12 07:40:46 +0300
commit21c75d9d94e1a338501d2011f17710ff5174ac01 (patch)
tree310d88754f399dc0fe4f8abdc68ba2d4097bdefd /alacritty/src/display/cursor.rs
parent182086f59c0148508c31d359eaee2cfef059f45c (diff)
downloadr-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.rs2
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.;