mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
chore: silence clippy
It appears that clippy's dead code detection has gotten better. This commit fixes winit's code to match. Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
@@ -669,7 +669,7 @@ impl Shared {
|
||||
ControlFlow::Poll => {
|
||||
let cloned = self.clone();
|
||||
State::Poll {
|
||||
request: backend::Schedule::new(
|
||||
_request: backend::Schedule::new(
|
||||
self.poll_strategy(),
|
||||
self.window(),
|
||||
move || cloned.poll(),
|
||||
@@ -693,7 +693,7 @@ impl Shared {
|
||||
State::WaitUntil {
|
||||
start,
|
||||
end,
|
||||
timeout: backend::Schedule::new_with_duration(
|
||||
_timeout: backend::Schedule::new_with_duration(
|
||||
self.window(),
|
||||
move || cloned.resume_time_reached(start, end),
|
||||
delay,
|
||||
|
||||
Reference in New Issue
Block a user