From: Ian Jackson Date: Fri, 2 Apr 2021 12:39:40 +0000 (+0100) Subject: if_let: Slight formatting adjustment X-Git-Tag: otter-0.5.0~323 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=77c101eaeb06f0aacced34f782eb7e5d307062a0;p=otter.git if_let: Slight formatting adjustment Signed-off-by: Ian Jackson --- 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)* },