Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 2c3ae88

Browse files
committed
Make macro_call a ref
1 parent 7c8690c commit 2c3ae88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/format_args.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl<'tcx> LateLintPass<'tcx> for FormatArgs {
191191
let linter = FormatArgsExpr {
192192
cx,
193193
expr,
194-
macro_call,
194+
macro_call: &macro_call,
195195
format_args: &format_args,
196196
ignore_mixed: self.ignore_mixed,
197197
};
@@ -210,7 +210,7 @@ impl<'tcx> LateLintPass<'tcx> for FormatArgs {
210210
struct FormatArgsExpr<'a, 'tcx> {
211211
cx: &'a LateContext<'tcx>,
212212
expr: &'tcx Expr<'tcx>,
213-
macro_call: MacroCall,
213+
macro_call: &'a MacroCall,
214214
format_args: &'a rustc_ast::FormatArgs,
215215
ignore_mixed: bool,
216216
}

0 commit comments

Comments
 (0)