chore: fix clippy lints

This commit is contained in:
Kirill Chibisov 2025-02-20 20:21:07 +03:00
parent d7d20507ed
commit 05d8fa0b91
3 changed files with 4 additions and 4 deletions

View file

@ -299,9 +299,9 @@ impl EventLoop {
// Create the display based on the backend. // Create the display based on the backend.
match backend { match backend {
#[cfg(wayland_platform)] #[cfg(wayland_platform)]
Backend::Wayland => EventLoop::new_wayland_any_thread().map_err(Into::into), Backend::Wayland => EventLoop::new_wayland_any_thread(),
#[cfg(x11_platform)] #[cfg(x11_platform)]
Backend::X => EventLoop::new_x11_any_thread().map_err(Into::into), Backend::X => EventLoop::new_x11_any_thread(),
} }
} }

View file

@ -177,7 +177,7 @@ unsafe fn get_xim_servers(xconn: &Arc<XConnection>) -> Result<Vec<String>, GetXi
) )
.map_err(GetXimServersError::GetPropertyError)? .map_err(GetXimServersError::GetPropertyError)?
.into_iter() .into_iter()
.map(ffi::Atom::from) .map(|atom| atom as _)
.collect::<Vec<_>>(); .collect::<Vec<_>>();
let mut names: Vec<*const c_char> = Vec::with_capacity(atoms.len()); let mut names: Vec<*const c_char> = Vec::with_capacity(atoms.len());

View file

@ -1341,7 +1341,7 @@ unsafe fn init(
// This is because if the size is changed in WM_CREATE, the restored size will be stored in that // This is because if the size is changed in WM_CREATE, the restored size will be stored in that
// size. // size.
if fullscreen.is_some() { if fullscreen.is_some() {
win.set_fullscreen(fullscreen.map(Into::into)); win.set_fullscreen(fullscreen);
unsafe { force_window_active(win.window) }; unsafe { force_window_active(win.window) };
} else if maximized { } else if maximized {
win.set_maximized(true); win.set_maximized(true);