From b0f26c79ff3e2942a87236569c53698e620c09cf Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Thu, 5 Jun 2025 13:10:30 +0200 Subject: [PATCH] Fix CI (#4270) * Fix typos * Remove OsError in winit-web --- winit-wayland/src/seat/keyboard/mod.rs | 2 +- winit-web/src/error.rs | 10 ---------- winit-web/src/lib.rs | 1 - winit-win32/src/event_loop.rs | 2 +- 4 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 winit-web/src/error.rs diff --git a/winit-wayland/src/seat/keyboard/mod.rs b/winit-wayland/src/seat/keyboard/mod.rs index 2a60057c..22700685 100644 --- a/winit-wayland/src/seat/keyboard/mod.rs +++ b/winit-wayland/src/seat/keyboard/mod.rs @@ -97,7 +97,7 @@ impl Dispatch for WinitState { WlKeyboardEvent::Leave { surface, .. } => { let window_id = crate::make_wid(&surface); - // NOTE: we should drop the repeat regardless whethere it was for the present + // NOTE: we should drop the repeat regardless whether it was for the present // window of for the window which just went gone. keyboard_state.current_repeat = None; if let Some(token) = keyboard_state.repeat_token.take() { diff --git a/winit-web/src/error.rs b/winit-web/src/error.rs deleted file mode 100644 index 6995f2bc..00000000 --- a/winit-web/src/error.rs +++ /dev/null @@ -1,10 +0,0 @@ -use std::fmt; - -#[derive(Debug)] -pub struct OsError(pub String); - -impl fmt::Display for OsError { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "{}", self.0) - } -} diff --git a/winit-web/src/lib.rs b/winit-web/src/lib.rs index bff8ebfb..946e47d4 100644 --- a/winit-web/src/lib.rs +++ b/winit-web/src/lib.rs @@ -68,7 +68,6 @@ macro_rules! os_error { mod r#async; mod cursor; -mod error; mod event; pub(crate) mod event_loop; mod keyboard; diff --git a/winit-win32/src/event_loop.rs b/winit-win32/src/event_loop.rs index 95480e53..db0008f3 100644 --- a/winit-win32/src/event_loop.rs +++ b/winit-win32/src/event_loop.rs @@ -682,7 +682,7 @@ fn wait_for_messages_impl( unsafe { // Either: - // 1. User wants to wait indefinely if timeout is not set. + // 1. User wants to wait indefinitely if timeout is not set. // 2. We failed to get and set high resolution timer and we need something instead of it. let wait_duration_ms = timeout.map(dur2timeout).unwrap_or(INFINITE);