From 5efd894f7d76704d5b49b894779c920886e825c0 Mon Sep 17 00:00:00 2001 From: Yuval Shavit Date: Wed, 14 Aug 2024 23:15:02 -0400 Subject: [PATCH] inline a macro invocation RustRover incorrectly identifies the `else` of this `if` as unreachable when it's a macro. Inlining it fixes that. --- src/tree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tree.rs b/src/tree.rs index d1a165f..7f2f8a4 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -491,7 +491,7 @@ impl MdElem { let mut headers: Vec = Vec::with_capacity(result.capacity()); for child_mdq in iter { let child_mdq = child_mdq?; - if let m_node!(MdElem::Section { + if let MdElem::Section(Section { depth, title, body: children,