about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/lib.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-04-23 20:10:49 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-04-23 20:10:49 +1000
commit7fe6bc57f5c9f1e40f82b4eefb4391149bc752e8 (patch)
tree3ffef303eab95b372d37583dbfcd8e2d02baa5e6 /compiler/rustc_ast_lowering/src/lib.rs
parentd88056c35ef8523afbd960a3927c71089d39d9f7 (diff)
downloadrust-7fe6bc57f5c9f1e40f82b4eefb4391149bc752e8.tar.gz
rust-7fe6bc57f5c9f1e40f82b4eefb4391149bc752e8.zip
Use `clone` to clone `DelimArgs` in two places.
Diffstat (limited to 'compiler/rustc_ast_lowering/src/lib.rs')
-rw-r--r--compiler/rustc_ast_lowering/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs
index c40987541f4..d23cf6cb2f1 100644
--- a/compiler/rustc_ast_lowering/src/lib.rs
+++ b/compiler/rustc_ast_lowering/src/lib.rs
@@ -916,7 +916,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
     }
 
     fn lower_delim_args(&self, args: &DelimArgs) -> DelimArgs {
-        DelimArgs { dspan: args.dspan, delim: args.delim, tokens: args.tokens.clone() }
+        args.clone()
     }
 
     /// Lower an associated item constraint.