From 77c101eaeb06f0aacced34f782eb7e5d307062a0 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 2 Apr 2021 13:39:40 +0100 Subject: [PATCH] if_let: Slight formatting adjustment Signed-off-by: Ian Jackson --- base/misc.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/misc.rs b/base/misc.rs index b97369d9..26a7ca67 100644 --- a/base/misc.rs +++ b/base/misc.rs @@ -67,7 +67,9 @@ pub fn space_rect_attrs(table_size: PosC) -> SvgAttrs { #[macro_export] macro_rules! if_let { - { $variant:ident($binding:pat) = $input:expr; else $($otherwise:tt)* } => { + { $variant:ident($binding:pat) = $input:expr; + else $($otherwise:tt)* + } => { let $binding = match $input { $variant(y) => y, _ => { $($otherwise)* }, -- 2.30.2