diff options
author | Aleksey Kladov <[email protected]> | 2018-08-28 19:48:14 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-28 19:48:14 +0100 |
commit | 6effddb18c8c7e0d500e7c17482642f1c3ebcfc8 (patch) | |
tree | 33551a48320a428c40a77c75aa94177ac8c8e60f /crates/libeditor/src/code_actions.rs | |
parent | e6ab53619b329f0b68417cb9fab41086cd8f0174 (diff) |
fix comma list
Diffstat (limited to 'crates/libeditor/src/code_actions.rs')
-rw-r--r-- | crates/libeditor/src/code_actions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/libeditor/src/code_actions.rs b/crates/libeditor/src/code_actions.rs index ca159c658..79530f257 100644 --- a/crates/libeditor/src/code_actions.rs +++ b/crates/libeditor/src/code_actions.rs | |||
@@ -110,9 +110,9 @@ fn comma_list(buf: &mut String, bra: &str, ket: &str, items: impl Iterator<Item= | |||
110 | let mut first = true; | 110 | let mut first = true; |
111 | for item in items { | 111 | for item in items { |
112 | if !first { | 112 | if !first { |
113 | first = false; | ||
114 | buf.push_str(", "); | 113 | buf.push_str(", "); |
115 | } | 114 | } |
115 | first = false; | ||
116 | write!(buf, "{}", item).unwrap(); | 116 | write!(buf, "{}", item).unwrap(); |
117 | } | 117 | } |
118 | buf.push_str(ket); | 118 | buf.push_str(ket); |