Fix misc rustfmt nits

This commit is contained in:
Demur Rumed 2017-10-09 00:25:13 +00:00 committed by Victor Berger
parent ce844ba9f8
commit 50aa38df72
2 changed files with 10 additions and 2 deletions

View File

@ -72,7 +72,11 @@ where
pending_configures: Vec::new(), pending_configures: Vec::new(),
configured: true, 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( shell.post_error(
wl_shell::Error::Role as u32, wl_shell::Error::Role as u32,
"Surface already has a role.".into(), "Surface already has a role.".into(),

View File

@ -93,7 +93,11 @@ where
pending_configures: Vec::new(), pending_configures: Vec::new(),
configured: false, 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( shell.post_error(
zxdg_shell_v6::Error::Role as u32, zxdg_shell_v6::Error::Role as u32,
"Surface already has a role.".into(), "Surface already has a role.".into(),