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:
parent
962241e2a0
commit
7b0ef160fc
11 changed files with 17 additions and 33 deletions
|
|
@ -711,7 +711,7 @@ async fn from_url(
|
|||
async fn from_animation(
|
||||
main_thread: MainThreadMarker,
|
||||
duration: Duration,
|
||||
cursors: impl Iterator<Item = CustomCursor> + ExactSizeIterator,
|
||||
cursors: impl ExactSizeIterator<Item = CustomCursor>,
|
||||
) -> Result<Animation, CustomCursorError> {
|
||||
let keyframes = Array::new();
|
||||
let mut images = Vec::with_capacity(cursors.len());
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use web_time::Instant;
|
|||
pub enum State {
|
||||
Init,
|
||||
WaitUntil {
|
||||
timeout: backend::Schedule,
|
||||
_timeout: backend::Schedule,
|
||||
start: Instant,
|
||||
end: Instant,
|
||||
},
|
||||
|
|
@ -14,7 +14,7 @@ pub enum State {
|
|||
start: Instant,
|
||||
},
|
||||
Poll {
|
||||
request: backend::Schedule,
|
||||
_request: backend::Schedule,
|
||||
},
|
||||
Exit,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue