Fix warnings

This commit is contained in:
Jeremy Soller 2024-01-11 11:40:22 -07:00
parent 3f09e17156
commit 2a679ab96f
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
3 changed files with 2 additions and 3 deletions

View file

@ -343,7 +343,6 @@ where
let mut hover = false;
if let Some(p) = cursor_position.position_in(layout.bounds()) {
let x = p.x - self.padding.left;
let y = p.y - self.padding.top;
if x >= scrollbar_rect.x && x < (scrollbar_rect.x + scrollbar_rect.width) {
hover = true;
}