Skip to content

Commit 13d955f

Browse files
committed
remove polish from ctrl-c handler
1 parent bcfc64e commit 13d955f

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/main.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@ use std::{
1414
fn main() {
1515
// handle Ctrl+C
1616
ctrlc::set_handler(move || {
17-
println!(
18-
"{} {} {} {}",
19-
"Received Ctrl-C!".bold().red(),
20-
"🤬",
21-
"Exit program!".bold().red(),
22-
"☠",
23-
);
17+
println!("{}", "Received Ctrl-C!".italic(),);
2418
process::exit(0)
2519
})
2620
.expect("Error setting Ctrl-C handler");
@@ -161,7 +155,7 @@ fn count_chars(content: String) -> usize {
161155

162156
count as usize
163157

164-
// FIXME
158+
// TODO FIXME
165159
// let mut count = 0;
166160
// content.par_split_whitespace().for_each(|word| {
167161
// word.par_chars().for_each(|_| {
@@ -190,7 +184,7 @@ fn countx() -> Command {
190184
"Leann Phydon <[email protected]>".italic().dimmed()
191185
))
192186
// TODO update version
193-
.version("1.2.0")
187+
.version("1.2.1")
194188
.author("Leann Phydon <[email protected]>")
195189
.arg(
196190
Arg::new("arg")

0 commit comments

Comments
 (0)