Skip to content

Commit 600a496

Browse files
committed
Unified: Simplify concatenation of arguments
1 parent 55194dd commit 600a496

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • unified/extractor/src/languages/swift

unified/extractor/src/languages/swift/swift.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,9 @@ fn translation_rules() -> Vec<yeast::Rule> {
210210
=>
211211
(call_expr
212212
function: {callee}
213-
argument: {..args.iter().copied().map(Into::into)
214-
.chain(trailing.map(Into::into)).collect::<Vec<usize>>()})
213+
argument: {..args}
214+
argument: {..trailing}
215+
)
215216
),
216217
// ---- Guard statement ----
217218
// `guard let x = e else { ... }` — currently only handles the

0 commit comments

Comments
 (0)