Fix warnings on all platforms (#1383)
* Fix warnings on all platforms * Also fixed a trait impl bound that I noticed along the way
This commit is contained in:
parent
4b618bd6a6
commit
9e3844ddd9
8 changed files with 28 additions and 29 deletions
|
|
@ -57,6 +57,7 @@ impl<T> WindowTarget<T> {
|
|||
|
||||
let runner = self.runner.clone();
|
||||
canvas.on_keyboard_press(move |scancode, virtual_keycode, modifiers| {
|
||||
#[allow(deprecated)]
|
||||
runner.send_event(Event::WindowEvent {
|
||||
window_id: WindowId(id),
|
||||
event: WindowEvent::KeyboardInput {
|
||||
|
|
@ -74,6 +75,7 @@ impl<T> WindowTarget<T> {
|
|||
|
||||
let runner = self.runner.clone();
|
||||
canvas.on_keyboard_release(move |scancode, virtual_keycode, modifiers| {
|
||||
#[allow(deprecated)]
|
||||
runner.send_event(Event::WindowEvent {
|
||||
window_id: WindowId(id),
|
||||
event: WindowEvent::KeyboardInput {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue