1
Fork 0

Shrink GenericArgs/PathSegment with boxed slices

This commit is contained in:
Michael Howell 2022-05-19 16:26:28 -07:00
parent 855e320fe2
commit 08237d8a6d
6 changed files with 20 additions and 19 deletions

View file

@ -457,7 +457,7 @@ impl clean::GenericArgs {
f.write_str("<")?;
}
let mut comma = false;
for arg in args {
for arg in &args[..] {
if comma {
f.write_str(", ")?;
}
@ -468,7 +468,7 @@ impl clean::GenericArgs {
write!(f, "{}", arg.print(cx))?;
}
}
for binding in bindings {
for binding in &bindings[..] {
if comma {
f.write_str(", ")?;
}
@ -489,7 +489,7 @@ impl clean::GenericArgs {
clean::GenericArgs::Parenthesized { inputs, output } => {
f.write_str("(")?;
let mut comma = false;
for ty in inputs {
for ty in &inputs[..] {
if comma {
f.write_str(", ")?;
}