We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c34a387 + 1c1763c commit a8e7a7cCopy full SHA for a8e7a7c
src/types.rs
@@ -305,7 +305,7 @@ where
305
T: Deref,
306
<T as Deref>::Target: Rewrite + Spanned,
307
{
308
- Regular(Box<T>),
+ Regular(T),
309
Variadic(BytePos),
310
}
311
@@ -332,11 +332,7 @@ where
332
let list_lo = context.snippet_provider.span_after(span, "(");
333
let items = itemize_list(
334
context.snippet_provider,
335
- // FIXME Would be nice to avoid this allocation,
336
- // but I couldn't get the types to work out.
337
- inputs
338
- .map(|i| ArgumentKind::Regular(Box::new(i)))
339
- .chain(variadic_arg),
+ inputs.map(ArgumentKind::Regular).chain(variadic_arg),
340
")",
341
",",
342
|arg| match *arg {
0 commit comments