summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-03-26 17:49:05 +0100
committermo8it <mo8it@proton.me>2024-03-26 17:49:05 +0100
commited0fcf8e3d05f5420b55370d4ff4ad8e0ded127b (patch)
tree3ae29aa5a23093494b8116e9cacf3a1446d28adb /src/main.rs
parentf36efae25deee03cb6f98ce7fc1e59efb7e72985 (diff)
Formatting
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index a06f0c5..a0b3af2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -223,10 +223,7 @@ fn main() {
Subcommands::Watch { success_hints } => match watch(&exercises, verbose, success_hints) {
Err(e) => {
- println!(
- "Error: Could not watch your progress. Error message was {:?}.",
- e
- );
+ println!("Error: Could not watch your progress. Error message was {e:?}.");
println!("Most likely you've run out of disk space or your 'inotify limit' has been reached.");
std::process::exit(1);
}
@@ -280,7 +277,7 @@ fn spawn_watch_shell(
if parts.is_empty() {
println!("no command provided");
} else if let Err(e) = Command::new(parts[0]).args(&parts[1..]).status() {
- println!("failed to execute command `{}`: {}", cmd, e);
+ println!("failed to execute command `{cmd}`: {e}");
}
} else {
println!("unknown command: {input}");