Skip to content

Commit f3c5877

Browse files
committed
Put is_from_proc_macro last
1 parent e9a222b commit f3c5877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/reserve_after_initialization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ impl<'tcx> LateLintPass<'tcx> for ReserveAfterInitialization {
112112
if let StmtKind::Expr(expr) | StmtKind::Semi(expr) = stmt.kind
113113
&& let ExprKind::MethodCall(name, self_arg, [space_hint], _) = expr.kind
114114
&& path_to_local_id(self_arg, searcher.local_id)
115-
&& !is_from_proc_macro(cx, expr)
116115
&& name.ident.as_str() == "reserve"
116+
&& !is_from_proc_macro(cx, expr)
117117
{
118118
self.searcher = Some(VecReserveSearcher {
119119
err_span: searcher.err_span.to(stmt.span),

0 commit comments

Comments
 (0)