We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38236a7 commit 26bb366Copy full SHA for 26bb366
clippy_utils/src/macros.rs
@@ -861,10 +861,12 @@ impl<'tcx> FormatArgsExpn<'tcx> {
861
let e_ctxt = e.span.ctxt();
862
if e_ctxt == expr.span.ctxt() {
863
ControlFlow::Continue(Descend::Yes)
864
- } else if e_ctxt.outer_expn().is_descendant_of(expn_id)
865
- && let Some(args) = FormatArgsExpn::parse(cx, e)
866
- {
867
- ControlFlow::Break(args)
+ } else if e_ctxt.outer_expn().is_descendant_of(expn_id) {
+ if let Some(args) = FormatArgsExpn::parse(cx, e) {
+ ControlFlow::Break(args)
+ } else {
868
+ ControlFlow::Continue(Descend::No)
869
+ }
870
} else {
871
ControlFlow::Continue(Descend::No)
872
}
0 commit comments