diff options
author | Christian Duerr <contact@christianduerr.com> | 2017-12-30 00:49:20 +0100 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2018-01-03 11:15:57 -0800 |
commit | 972176adc386d644a6d9ac2edbe285449db5ba44 (patch) | |
tree | f267a6af9e8d0a31064a6deaec9f0e31edccd6f5 | |
parent | 3765598fefae023bb2909fca934cd60ad5fab20a (diff) | |
download | alacritty-972176adc386d644a6d9ac2edbe285449db5ba44.tar.gz alacritty-972176adc386d644a6d9ac2edbe285449db5ba44.zip |
Use default modifier state
The tests were using a manually setup `ModifiersState`, to clean things
up a bit the `ModifiersState::default` method has been used to replace
this.
-rw-r--r-- | src/input.rs | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/input.rs b/src/input.rs index 007c57bd..9378b140 100644 --- a/src/input.rs +++ b/src/input.rs @@ -741,12 +741,7 @@ mod tests { state: ElementState::Pressed, button: MouseButton::Left, device_id: unsafe { ::std::mem::transmute_copy(&0) }, - modifiers: ModifiersState { - shift: false, - ctrl: false, - alt: false, - logo: false, - }, + modifiers: ModifiersState::default(), }, window_id: unsafe { ::std::mem::transmute_copy(&0) }, }, @@ -762,12 +757,7 @@ mod tests { state: ElementState::Pressed, button: MouseButton::Left, device_id: unsafe { ::std::mem::transmute_copy(&0) }, - modifiers: ModifiersState { - shift: false, - ctrl: false, - alt: false, - logo: false, - }, + modifiers: ModifiersState::default(), }, window_id: unsafe { ::std::mem::transmute_copy(&0) }, }, @@ -783,12 +773,7 @@ mod tests { state: ElementState::Pressed, button: MouseButton::Left, device_id: unsafe { ::std::mem::transmute_copy(&0) }, - modifiers: ModifiersState { - shift: false, - ctrl: false, - alt: false, - logo: false, - }, + modifiers: ModifiersState::default(), }, window_id: unsafe { ::std::mem::transmute_copy(&0) }, }, |