diff --git a/src/wayland/compositor.rs b/src/wayland/compositor.rs index 7825af3..b310081 100644 --- a/src/wayland/compositor.rs +++ b/src/wayland/compositor.rs @@ -11,9 +11,9 @@ impl CompositorHandler for WaylandState { } fn commit(&mut self, surface: &WlSurface) { - compositor::with_states(&surface, |data| { + compositor::with_states(surface, |data| { data.data_map.insert_if_missing_threadsafe(|| { - CoreSurface::new(&self.display, self.display_handle.clone(), &surface) + CoreSurface::new(&self.display, self.display_handle.clone(), surface) }) }); } diff --git a/src/wayland/panel_item.rs b/src/wayland/panel_item.rs index 2425cb1..96a37bb 100644 --- a/src/wayland/panel_item.rs +++ b/src/wayland/panel_item.rs @@ -456,7 +456,7 @@ impl PanelItem { let flex_vec = flexbuffers::Reader::get_root(data)?.get_vector()?; let key = flex_vec.index(0)?.get_u64()? as u32; let state = flex_vec.index(1)?.get_u64()? as u32; - keyboard_info.process(key, state, &keyboard)?; + keyboard_info.process(key, state, keyboard)?; } } } diff --git a/src/wayland/seat.rs b/src/wayland/seat.rs index c65f538..06824cb 100644 --- a/src/wayland/seat.rs +++ b/src/wayland/seat.rs @@ -124,6 +124,7 @@ impl SeatDataInner { pub fn keyboard(&self) -> Option<&WlKeyboard> { self.keyboard.get() } + #[allow(dead_code)] pub fn touch(&self) -> Option<&WlTouch> { self.touch.get() }