diff options
Diffstat (limited to 'alacritty/src/scheduler.rs')
-rw-r--r-- | alacritty/src/scheduler.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alacritty/src/scheduler.rs b/alacritty/src/scheduler.rs index 08388b94..3a26322f 100644 --- a/alacritty/src/scheduler.rs +++ b/alacritty/src/scheduler.rs @@ -3,8 +3,8 @@ use std::collections::VecDeque; use std::time::{Duration, Instant}; -use glutin::event_loop::EventLoopProxy; -use glutin::window::WindowId; +use winit::event_loop::EventLoopProxy; +use winit::window::WindowId; use crate::event::Event; @@ -80,7 +80,7 @@ impl Scheduler { .timers .iter() .position(|timer| timer.deadline > deadline) - .unwrap_or_else(|| self.timers.len()); + .unwrap_or(self.timers.len()); // Set the automatic event repeat rate. let interval = if repeat { Some(interval) } else { None }; |