diff --git a/src/main.rs b/src/main.rs index 2722978..0a468f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,14 +3,8 @@ mod settings; use settings::Settings; fn main() { - let settings = Settings::new(); - let settings = match settings { - Ok(s) => s, - Err(_) => { - println!("Could not read settings. Please provide the settings file 'clrigctl.toml'."); - return; - } - }; + let settings = Settings::new() + .expect("Could not read settings."); println!("{:?}", settings); }