I guess main can return Results now.

This commit is contained in:
2020-12-08 10:02:36 -08:00
parent ab417307f3
commit ec0205f8de
8 changed files with 16 additions and 64 deletions

View File

@@ -3,7 +3,7 @@ use std::collections::BTreeSet;
use std::env;
use std::fs;
fn real_main() -> Result<(), TopLevelError> {
fn main() -> Result<(), TopLevelError> {
let mut customs_forms_any = Vec::new();
let mut customs_forms_all = Vec::new();
@@ -73,10 +73,4 @@ fn every_seat() -> BTreeSet<char> {
}
result
}
fn main() {
if let Err(e) = real_main() {
eprintln!("ERROR: {}", e);
}
}
}