Silence warnings about use of deprecated fields

This commit is contained in:
Murarth 2020-01-04 10:58:39 -07:00 committed by Osspial
parent d29f7f34aa
commit ac69a9c0dc
3 changed files with 9 additions and 0 deletions

View file

@ -341,6 +341,7 @@ impl<'a> WindowEvent<'a> {
input,
is_synthetic,
}),
#[allow(deprecated)]
CursorMoved {
device_id,
position,
@ -352,6 +353,7 @@ impl<'a> WindowEvent<'a> {
}),
CursorEntered { device_id } => Some(CursorEntered { device_id }),
CursorLeft { device_id } => Some(CursorLeft { device_id }),
#[allow(deprecated)]
MouseWheel {
device_id,
delta,
@ -363,6 +365,7 @@ impl<'a> WindowEvent<'a> {
phase,
modifiers,
}),
#[allow(deprecated)]
MouseInput {
device_id,
state,