mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
chore: fix clippy lints
This commit is contained in:
@@ -768,9 +768,9 @@ impl<T: 'static> EventLoop<T> {
|
|||||||
// 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(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -176,7 +176,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());
|
||||||
|
|||||||
Reference in New Issue
Block a user