From 5e5e8876f6dbecaf508045f400b63097ddccef6b Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Thu, 2 Sep 2021 21:15:35 +0200 Subject: [PATCH] cargo fmt --- src/app.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 5ae4a22..0b6183a 100644 --- a/src/app.rs +++ b/src/app.rs @@ -78,7 +78,9 @@ impl AppInner { ); shell_surface.quick_assign(move |layer, event, _| match event { zwlr_layer_surface_v1::Event::Configure { serial, .. } => { - if this_is_stupid.compare_exchange(false, true, Ordering::SeqCst, Ordering::SeqCst).is_ok() + if this_is_stupid + .compare_exchange(false, true, Ordering::SeqCst, Ordering::SeqCst) + .is_ok() { *(configured_surfaces.lock().unwrap()) += 1; layer.ack_configure(serial);