cargo clippy everywhere

This commit is contained in:
Shawn Wallace 2025-07-12 12:29:33 -04:00
parent 07847e11d7
commit e4bb8c3f9d
7 changed files with 18 additions and 15 deletions

View file

@ -365,7 +365,7 @@ impl State {
.expect("Surface does not exist");
match &mut surface.role {
Some(SurfaceRole::Toplevel(t)) => t,
other => panic!("Surface does not have toplevel role: {:?}", other),
other => panic!("Surface does not have toplevel role: {other:?}"),
}
}
@ -1283,7 +1283,7 @@ impl Dispatch<XdgToplevel, SurfaceId> for State {
let states = toplevel.states.clone();
state.configure_toplevel(*surface_id, 100, 100, states);
}
xdg_toplevel::Request::UnsetFullscreen { .. } => {
xdg_toplevel::Request::UnsetFullscreen => {
let data = state.surfaces.get_mut(surface_id).unwrap();
let Some(SurfaceRole::Toplevel(toplevel)) = &mut data.role else {
unreachable!();
@ -1667,7 +1667,7 @@ impl Dispatch<WlSurface, ()> for State {
let data = state
.surfaces
.get_mut(&SurfaceId(resource.id().protocol_id()))
.unwrap_or_else(|| panic!("{:?} missing from surface map", resource));
.unwrap_or_else(|| panic!("{resource:?} missing from surface map"));
match request {
Attach { buffer, .. } => {