cleanup: fmt + clippy

This commit is contained in:
Ashley Wulber 2024-03-27 00:53:02 -04:00
parent ace619fd01
commit a698efe935
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
3 changed files with 6 additions and 6 deletions

View file

@ -353,7 +353,7 @@ where
if let (Some((wl_buffer, width, height)), Some(surface)) = (buffer, icon_surface) {
surface.damage_buffer(0, 0, width as i32, height as i32);
surface.attach(Some(&wl_buffer), 0, 0);
surface.attach(Some(wl_buffer), 0, 0);
surface.commit();
dbg!("attached buffer, damaged surface.");

View file

@ -99,9 +99,9 @@ impl<T: 'static + Clone> State<T> {
}
let compositor_state =
CompositorState::bind(&globals, &queue_handle).expect("wl_compositor not available");
let output_state = OutputState::new(&globals, &queue_handle);
let shm = Shm::bind(&globals, &queue_handle).expect("wl_shm not available");
CompositorState::bind(globals, queue_handle).expect("wl_compositor not available");
let output_state = OutputState::new(globals, queue_handle);
let shm = Shm::bind(globals, queue_handle).expect("wl_shm not available");
let seat_state = SeatState::new(globals, queue_handle);
for seat in seat_state.seats() {