mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
fix comma list
This commit is contained in:
parent
e6ab53619b
commit
6effddb18c
1 changed files with 1 additions and 1 deletions
|
@ -110,9 +110,9 @@ fn comma_list(buf: &mut String, bra: &str, ket: &str, items: impl Iterator<Item=
|
||||||
let mut first = true;
|
let mut first = true;
|
||||||
for item in items {
|
for item in items {
|
||||||
if !first {
|
if !first {
|
||||||
first = false;
|
|
||||||
buf.push_str(", ");
|
buf.push_str(", ");
|
||||||
}
|
}
|
||||||
|
first = false;
|
||||||
write!(buf, "{}", item).unwrap();
|
write!(buf, "{}", item).unwrap();
|
||||||
}
|
}
|
||||||
buf.push_str(ket);
|
buf.push_str(ket);
|
||||||
|
|
Loading…
Reference in a new issue