fix(clippy): silence

This commit is contained in:
Nova
2022-09-13 15:38:22 -04:00
parent 9987e5eb08
commit 3453b004c5
3 changed files with 4 additions and 3 deletions

View File

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

View File

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

View File

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