From 50aa38df72bbd6163c04172f1869d8d394e66580 Mon Sep 17 00:00:00 2001 From: Demur Rumed Date: Mon, 9 Oct 2017 00:25:13 +0000 Subject: [PATCH] Fix misc rustfmt nits --- src/wayland/shell/wl_handlers.rs | 6 +++++- src/wayland/shell/xdg_handlers.rs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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(),