aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/input/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty/src/input/mod.rs')
-rw-r--r--alacritty/src/input/mod.rs32
1 files changed, 16 insertions, 16 deletions
diff --git a/alacritty/src/input/mod.rs b/alacritty/src/input/mod.rs
index 4900e26f..9f7074f4 100644
--- a/alacritty/src/input/mod.rs
+++ b/alacritty/src/input/mod.rs
@@ -1327,9 +1327,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Left,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::Click,
input_delay: Duration::ZERO,
@@ -1343,9 +1343,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Right,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::Click,
input_delay: Duration::ZERO,
@@ -1359,9 +1359,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Middle,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::Click,
input_delay: Duration::ZERO,
@@ -1375,9 +1375,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Left,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::DoubleClick,
input_delay: Duration::ZERO,
@@ -1391,9 +1391,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Left,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::Click,
input_delay: CLICK_THRESHOLD,
@@ -1407,9 +1407,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Left,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::TripleClick,
input_delay: Duration::ZERO,
@@ -1423,9 +1423,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Left,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::Click,
input_delay: CLICK_THRESHOLD,
@@ -1439,9 +1439,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Right,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::Click,
input_delay: Duration::ZERO,