Use clone to clone DelimArgs in two places.

This commit is contained in:
Nicholas Nethercote
2025-04-23 20:10:49 +10:00
parent d88056c35e
commit 7fe6bc57f5
2 changed files with 3 additions and 7 deletions

View File

@@ -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.