impl TryFrom instead of having conversion functions
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user