reformatted code with rustfmt
This commit is contained in:
parent
829e90753a
commit
7693d17202
17
src/main.rs
17
src/main.rs
|
@ -8,13 +8,16 @@ pub mod helper;
|
|||
use helper::settings::Settings;
|
||||
|
||||
fn main() {
|
||||
let settings = match Settings::new(){
|
||||
Ok(settings) => settings,
|
||||
Err(e) => {
|
||||
println!("Failed to read config: {}", e);
|
||||
std::process::exit(1);
|
||||
}
|
||||
let settings = match Settings::new() {
|
||||
Ok(settings) => settings,
|
||||
Err(e) => {
|
||||
println!("Failed to read config: {}", e);
|
||||
std::process::exit(1);
|
||||
}
|
||||
};
|
||||
|
||||
println!("Hello, world! Default Language: {}", settings.application.default_language);
|
||||
println!(
|
||||
"Hello, world! Default Language: {}",
|
||||
settings.application.default_language
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue