diff --git a/src/wayland/shell/wl_handlers.rs b/src/wayland/shell/wl_handlers.rs index d2373c3..2eba037 100644 --- a/src/wayland/shell/wl_handlers.rs +++ b/src/wayland/shell/wl_handlers.rs @@ -72,7 +72,11 @@ where pending_configures: Vec::new(), configured: true, }; - if idata.compositor_token.give_role_with(surface, role_data).is_err() { + if idata + .compositor_token + .give_role_with(surface, role_data) + .is_err() + { shell.post_error( wl_shell::Error::Role as u32, "Surface already has a role.".into(), diff --git a/src/wayland/shell/xdg_handlers.rs b/src/wayland/shell/xdg_handlers.rs index 4400fb0..ee1bba0 100644 --- a/src/wayland/shell/xdg_handlers.rs +++ b/src/wayland/shell/xdg_handlers.rs @@ -93,7 +93,11 @@ where pending_configures: Vec::new(), configured: false, }; - if idata.compositor_token.give_role_with(wl_surface, role_data).is_err() { + if idata + .compositor_token + .give_role_with(wl_surface, role_data) + .is_err() + { shell.post_error( zxdg_shell_v6::Error::Role as u32, "Surface already has a role.".into(),