Learn a bit from clippy.

This commit is contained in:
2020-12-07 19:49:14 -08:00
parent 8604b925ee
commit 8c79964316
7 changed files with 12 additions and 20 deletions

View File

@@ -150,8 +150,7 @@ fn real_main() -> Result<(), TopLevelError> {
}
fn main() {
match real_main() {
Err(e) => eprintln!("ERROR: {}", e),
Ok(_) => {}
if let Err(e) = real_main() {
eprintln!("ERROR: {}", e);
}
}