Skip to content

Commit

Permalink
inline a macro invocation
Browse files Browse the repository at this point in the history
RustRover incorrectly identifies the `else` of this `if` as unreachable
when it's a macro. Inlining it fixes that.
  • Loading branch information
yshavit authored Aug 15, 2024
1 parent f293038 commit 5efd894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ impl MdElem {
let mut headers: Vec<HContainer> = 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,
Expand Down

0 comments on commit 5efd894

Please sign in to comment.