* Fix typos
* Remove OsError in winit-web
This commit is contained in:
Mads Marquart 2025-06-05 13:10:30 +02:00 committed by GitHub
parent 969237f422
commit b0f26c79ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 13 deletions

View file

@ -97,7 +97,7 @@ impl Dispatch<WlKeyboard, KeyboardData, WinitState> 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() {

View file

@ -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)
}
}

View file

@ -68,7 +68,6 @@ macro_rules! os_error {
mod r#async;
mod cursor;
mod error;
mod event;
pub(crate) mod event_loop;
mod keyboard;

View file

@ -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);