Add network link to ue-server implementation #13
1 changed files with 2 additions and 3 deletions
Refactor main.rs to use if let construction
commit
5ce511c5a7
|
|
@ -7,8 +7,7 @@ fn main() {
|
|||
let args: Vec<String> = 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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue