impl TryFrom instead of having conversion functions

This commit is contained in:
2025-06-25 00:35:35 +02:00
parent 2f381d540b
commit b685c3a831
5 changed files with 396 additions and 374 deletions

View File

@@ -64,7 +64,7 @@ fn get_input() -> Option<Action> {
_ => return None,
}),
Err(e) => {
eprintln!("ERROR: {:#?}", e);
eprintln!("ERROR: {e:#?}");
exit();
}
_ => None,
@@ -72,7 +72,7 @@ fn get_input() -> Option<Action> {
}
Ok(false) => None,
Err(e) => {
eprintln!("ERROR: {:#?}", e);
eprintln!("ERROR: {e:#?}");
exit();
}
}