Skip to content

Commit dbfb821

Browse files
committed
clippy
1 parent 3f41c66 commit dbfb821

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/platform_impl/web/event_loop/window_target.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl ActiveEventLoop {
8484
modifiers.set(Modifiers::empty());
8585
Event::WindowEvent {
8686
window_id,
87-
event: WindowEvent::ModifiersChanged(Modifiers::empty().into()),
87+
event: WindowEvent::ModifiersChanged(Modifiers::empty()),
8888
}
8989
});
9090

@@ -130,7 +130,7 @@ impl ActiveEventLoop {
130130
modifiers.set(active_modifiers);
131131
Event::WindowEvent {
132132
window_id,
133-
event: WindowEvent::ModifiersChanged(active_modifiers.into()),
133+
event: WindowEvent::ModifiersChanged(active_modifiers),
134134
}
135135
});
136136

@@ -165,7 +165,7 @@ impl ActiveEventLoop {
165165
modifiers.set(active_modifiers);
166166
Event::WindowEvent {
167167
window_id,
168-
event: WindowEvent::ModifiersChanged(active_modifiers.into()),
168+
event: WindowEvent::ModifiersChanged(active_modifiers),
169169
}
170170
});
171171

@@ -203,7 +203,7 @@ impl ActiveEventLoop {
203203
modifiers.set(active_modifiers);
204204
Event::WindowEvent {
205205
window_id,
206-
event: WindowEvent::ModifiersChanged(active_modifiers.into()),
206+
event: WindowEvent::ModifiersChanged(active_modifiers),
207207
}
208208
});
209209

@@ -229,7 +229,7 @@ impl ActiveEventLoop {
229229
modifiers.set(active_modifiers);
230230
Event::WindowEvent {
231231
window_id,
232-
event: WindowEvent::ModifiersChanged(active_modifiers.into()),
232+
event: WindowEvent::ModifiersChanged(active_modifiers),
233233
}
234234
});
235235

@@ -256,7 +256,7 @@ impl ActiveEventLoop {
256256
Event::WindowEvent {
257257
window_id,
258258
event: WindowEvent::ModifiersChanged(
259-
active_modifiers.into(),
259+
active_modifiers,
260260
),
261261
}
262262
});
@@ -285,7 +285,7 @@ impl ActiveEventLoop {
285285
modifiers.set(active_modifiers);
286286
Event::WindowEvent {
287287
window_id,
288-
event: WindowEvent::ModifiersChanged(active_modifiers.into()),
288+
event: WindowEvent::ModifiersChanged(active_modifiers),
289289
}
290290
});
291291

@@ -312,7 +312,7 @@ impl ActiveEventLoop {
312312
modifiers.set(active_modifiers);
313313
Event::WindowEvent {
314314
window_id,
315-
event: WindowEvent::ModifiersChanged(active_modifiers.into()),
315+
event: WindowEvent::ModifiersChanged(active_modifiers),
316316
}
317317
});
318318

@@ -340,7 +340,7 @@ impl ActiveEventLoop {
340340
modifiers.set(active_modifiers);
341341
Event::WindowEvent {
342342
window_id,
343-
event: WindowEvent::ModifiersChanged(active_modifiers.into()),
343+
event: WindowEvent::ModifiersChanged(active_modifiers),
344344
}
345345
});
346346

@@ -365,7 +365,7 @@ impl ActiveEventLoop {
365365
modifiers.set(active_modifiers);
366366
Event::WindowEvent {
367367
window_id,
368-
event: WindowEvent::ModifiersChanged(active_modifiers.into()),
368+
event: WindowEvent::ModifiersChanged(active_modifiers),
369369
}
370370
});
371371

0 commit comments

Comments
 (0)