cargo fmt
This commit is contained in:
13
src/main.rs
13
src/main.rs
@@ -251,19 +251,22 @@ impl App {
|
||||
} else if configs::CONFIG.read().unwrap().args.contributors {
|
||||
self.print_contributors();
|
||||
return;
|
||||
} else if configs::CONFIG.read().unwrap().args.level_tuning.is_some()
|
||||
{
|
||||
} else if configs::CONFIG.read().unwrap().args.level_tuning.is_some() {
|
||||
let level_tuning_val = &configs::CONFIG
|
||||
.read()
|
||||
.unwrap()
|
||||
.args
|
||||
.level_tuning.clone().unwrap();
|
||||
.level_tuning
|
||||
.clone()
|
||||
.unwrap();
|
||||
let level_tuning_config_path = match level_tuning_val {
|
||||
Some(path) => path.to_owned(),
|
||||
_ => CURRENT_EXE_PATH.join("./rules/config/level_tuning.txt").display().to_string(),
|
||||
_ => CURRENT_EXE_PATH
|
||||
.join("./rules/config/level_tuning.txt")
|
||||
.display()
|
||||
.to_string(),
|
||||
};
|
||||
|
||||
|
||||
if Path::new(&level_tuning_config_path).exists() {
|
||||
if let Err(err) = LevelTuning::run(
|
||||
&level_tuning_config_path,
|
||||
|
||||
Reference in New Issue
Block a user