diff --git a/src/platform_impl/linux/mod.rs b/src/platform_impl/linux/mod.rs index 5600282f4d..2f0398ee8b 100644 --- a/src/platform_impl/linux/mod.rs +++ b/src/platform_impl/linux/mod.rs @@ -299,9 +299,9 @@ impl EventLoop { // Create the display based on the backend. match backend { #[cfg(wayland_platform)] - Backend::Wayland => EventLoop::new_wayland_any_thread().map_err(Into::into), + Backend::Wayland => EventLoop::new_wayland_any_thread(), #[cfg(x11_platform)] - Backend::X => EventLoop::new_x11_any_thread().map_err(Into::into), + Backend::X => EventLoop::new_x11_any_thread(), } } diff --git a/src/platform_impl/linux/x11/ime/input_method.rs b/src/platform_impl/linux/x11/ime/input_method.rs index 3a068cc27c..a8487bc4cc 100644 --- a/src/platform_impl/linux/x11/ime/input_method.rs +++ b/src/platform_impl/linux/x11/ime/input_method.rs @@ -177,7 +177,7 @@ unsafe fn get_xim_servers(xconn: &Arc) -> Result, GetXi ) .map_err(GetXimServersError::GetPropertyError)? .into_iter() - .map(ffi::Atom::from) + .map(|atom| atom as _) .collect::>(); let mut names: Vec<*const c_char> = Vec::with_capacity(atoms.len()); diff --git a/src/platform_impl/windows/window.rs b/src/platform_impl/windows/window.rs index 55799699d5..dd75dee90d 100644 --- a/src/platform_impl/windows/window.rs +++ b/src/platform_impl/windows/window.rs @@ -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 // size. if fullscreen.is_some() { - win.set_fullscreen(fullscreen.map(Into::into)); + win.set_fullscreen(fullscreen); unsafe { force_window_active(win.window) }; } else if maximized { win.set_maximized(true);