reformatted code with rustfmt

This commit is contained in:
Keanu D?lle 2020-01-15 12:44:34 +01:00
parent 829e90753a
commit 7693d17202
2 changed files with 11 additions and 8 deletions

View File

@ -1,3 +1,3 @@
extern crate config; extern crate config;
pub mod settings; pub mod settings;

View File

@ -8,13 +8,16 @@ pub mod helper;
use helper::settings::Settings; use helper::settings::Settings;
fn main() { fn main() {
let settings = match Settings::new(){ let settings = match Settings::new() {
Ok(settings) => settings, Ok(settings) => settings,
Err(e) => { Err(e) => {
println!("Failed to read config: {}", e); println!("Failed to read config: {}", e);
std::process::exit(1); std::process::exit(1);
} }
}; };
println!("Hello, world! Default Language: {}", settings.application.default_language); println!(
"Hello, world! Default Language: {}",
settings.application.default_language
);
} }