diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-04-24 08:13:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-24 08:13:01 +0200 |
| commit | 986750ded489d5f948465667e6d67430e67c4826 (patch) | |
| tree | c45732a75ff6ac4c40c9b235c5bbfe4b28ec2057 /compiler/rustc_ast_pretty | |
| parent | 12545594044bc9813d7a0872596ebd5df3fb8849 (diff) | |
| parent | af8047789dded51803be6cba1a708cddb1618020 (diff) | |
| download | rust-986750ded489d5f948465667e6d67430e67c4826.tar.gz rust-986750ded489d5f948465667e6d67430e67c4826.zip | |
Rollup merge of #140232 - nnethercote:rm-unnecessary-clones, r=SparrowLii
Remove unnecessary clones r? `@SparrowLii`
Diffstat (limited to 'compiler/rustc_ast_pretty')
| -rw-r--r-- | compiler/rustc_ast_pretty/src/pprust/state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast_pretty/src/pprust/state.rs b/compiler/rustc_ast_pretty/src/pprust/state.rs index 6959cbd87f1..62a50c73855 100644 --- a/compiler/rustc_ast_pretty/src/pprust/state.rs +++ b/compiler/rustc_ast_pretty/src/pprust/state.rs @@ -799,7 +799,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere has_bang, Some(*ident), macro_def.body.delim, - ¯o_def.body.tokens.clone(), + ¯o_def.body.tokens, true, sp, ); @@ -1468,7 +1468,7 @@ impl<'a> State<'a> { true, None, m.args.delim, - &m.args.tokens.clone(), + &m.args.tokens, true, m.span(), ); |
