Fix warnings

This commit is contained in:
Jeremy Soller 2024-01-11 14:32:11 -07:00
parent 9b2ab1202a
commit ac4472e45e
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@ use alacritty_terminal::{
term::{
cell::Flags,
color::{self, Colors},
search::{Match, RegexSearch},
search::RegexSearch,
viewport_to_point, Config, TermMode,
},
tty::{self, Options},

View file

@ -876,7 +876,7 @@ where
Event::Mouse(MouseEvent::WheelScrolled { delta }) => {
if let Some(_p) = cursor_position.position_in(layout.bounds()) {
match delta {
ScrollDelta::Lines { x, y } => {
ScrollDelta::Lines { x: _, y } => {
//TODO: this adjustment is just a guess!
state.scroll_pixels = 0.0;
let lines = (-y * 6.0) as i32;
@ -885,7 +885,7 @@ where
}
status = Status::Captured;
}
ScrollDelta::Pixels { x, y } => {
ScrollDelta::Pixels { x: _, y } => {
//TODO: this adjustment is just a guess!
state.scroll_pixels -= y * 6.0;
let mut lines = 0;