diff --git a/examples/libxcb.rs b/examples/libxcb.rs index 23ebf585..a1e2674a 100644 --- a/examples/libxcb.rs +++ b/examples/libxcb.rs @@ -130,10 +130,8 @@ mod example { width = configure_notify.width; height = configure_notify.height; } - Event::ClientMessage(cm) => { - if cm.data.as_data32()[0] == delete_window_atom { - break; - } + Event::ClientMessage(cm) if cm.data.as_data32()[0] == delete_window_atom => { + break; } _ => {} }