diff --git a/src/main.rs b/src/main.rs index 604053c..7f15ba3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,8 +7,7 @@ fn main() { let args: Vec = env::args().collect(); let filename = &args[1]; let config = unreal_config::load_file(Path::new(filename)); - match config { - Ok(config) => print!("{}", config), - _ => (), + if let Ok(config) = config { + print!("{}", config); } }