mirror of
https://github.com/alacritty/alacritty.git
synced 2026-12-06 19:22:26 +03:00
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.
This commit is contained in:
1 parent
3765598fef
commit
972176adc3
1 file changed
+3
-18
+3
-18
@@ -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) },
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user