Shrink GenericArgs/PathSegment with boxed slices
This commit is contained in:
parent
855e320fe2
commit
08237d8a6d
6 changed files with 20 additions and 19 deletions
|
@ -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(", ")?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue