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;
|
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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue