Fix clippy lints

This commit is contained in:
Héctor Ramón Jiménez 2023-02-24 13:58:17 +01:00
parent 700262e05c
commit 8059c40142
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
3 changed files with 5 additions and 5 deletions

View file

@ -451,7 +451,7 @@ where
let text_size =
self.text_size.unwrap_or_else(|| renderer.default_size());
let option_height =
(text_size * 1.2 + f32::from(self.padding.vertical())) as usize;
(text_size * 1.2 + self.padding.vertical()) as usize;
let offset = viewport.y - bounds.y;
let start = (offset / option_height as f32) as usize;