aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/cursor.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-03-12 22:49:46 +0000
committerGitHub <noreply@github.com>2020-03-12 22:49:46 +0000
commit6d60a49956facc63ab5e0ebac8eb15ab7347ea9a (patch)
tree0f9a38a42c5da8f083b7d7dcfd9b912177fe465a /alacritty/src/cursor.rs
parentc2e39085e3dfed6e4ea69ea30ed85dae1d81823c (diff)
downloadr-alacritty-6d60a49956facc63ab5e0ebac8eb15ab7347ea9a.tar.gz
r-alacritty-6d60a49956facc63ab5e0ebac8eb15ab7347ea9a.tar.bz2
r-alacritty-6d60a49956facc63ab5e0ebac8eb15ab7347ea9a.zip
Run clippy on oldest supported version
Since there were some problems with clippy suggesting changes that were not yet available in the oldest supported Rust compiler of Alacritty, the clippy stage has been moved from stable to 1.37.0.
Diffstat (limited to 'alacritty/src/cursor.rs')
-rw-r--r--alacritty/src/cursor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/cursor.rs b/alacritty/src/cursor.rs
index 734c6817..e18816ed 100644
--- a/alacritty/src/cursor.rs
+++ b/alacritty/src/cursor.rs
@@ -33,7 +33,7 @@ pub fn get_cursor_glyph(
// Calculate the cell metrics
let height = metrics.line_height as i32 + i32::from(offset_y);
let mut width = metrics.average_advance as i32 + i32::from(offset_x);
- let line_width = cmp::max((width as f64 * CURSOR_WIDTH_PERCENTAGE).round() as i32, 1);
+ let line_width = cmp::max((f64::from(width) * CURSOR_WIDTH_PERCENTAGE).round() as i32, 1);
// Double the cursor width if it's above a double-width glyph
if is_wide {