Skip to content

Commit 0f3b82e

Browse files
committed
format
1 parent 2e0ac38 commit 0f3b82e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,18 @@ Possible values: [{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}{11}{12}{13}{14}{15}]",
155155
)
156156
.arg(
157157
Arg::with_name("list")
158-
.short("l")
159-
.long("list")
160-
.help("Prints a list of all supported languages")
158+
.short("l")
159+
.long("list")
160+
.help("Prints a list of all supported languages"),
161161
)
162162
.get_matches();
163163

164164
if matches.is_present("list") {
165165
let list = Language::iter()
166166
.filter(|x| *x != Language::Unknown)
167167
.map(|x| x.to_string().color(x.get_colors()[0]).to_string())
168-
.collect::<Vec<String>>().join(", ");
168+
.collect::<Vec<String>>()
169+
.join(", ");
169170

170171
print!("Supported languages:\n\n{}\n", list);
171172
std::process::exit(0);

0 commit comments

Comments
 (0)