mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 08:34:43 +01:00
lint and format
This commit is contained in:
@@ -3,10 +3,9 @@
|
|||||||
windows_subsystem = "windows"
|
windows_subsystem = "windows"
|
||||||
)]
|
)]
|
||||||
|
|
||||||
use args::validations::{Order, OrderValidation};
|
|
||||||
use args::{Args, ArgsError};
|
use args::{Args, ArgsError};
|
||||||
use file_helpers::dir_exists;
|
use file_helpers::dir_exists;
|
||||||
use getopts;
|
|
||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use proxy::set_proxy_addr;
|
use proxy::set_proxy_addr;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
@@ -107,11 +106,7 @@ async fn parse_args(inp: &Vec<String>) -> Result<Args, ArgsError> {
|
|||||||
|
|
||||||
server_path.pop();
|
server_path.pop();
|
||||||
|
|
||||||
system_helpers::run_jar(
|
system_helpers::run_jar(server_jar, server_path.to_string(), java_path);
|
||||||
server_jar.to_string(),
|
|
||||||
server_path.to_string(),
|
|
||||||
java_path.to_string(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if args.value_of::<String>("host").is_ok() && !args.value_of::<String>("host")?.is_empty() {
|
if args.value_of::<String>("host").is_ok() && !args.value_of::<String>("host")?.is_empty() {
|
||||||
|
|||||||
@@ -55,5 +55,5 @@ pub async fn get_game_rsa_path() -> Option<String> {
|
|||||||
let mut game_folder = PathBuf::from(config.game_install_path);
|
let mut game_folder = PathBuf::from(config.game_install_path);
|
||||||
game_folder.pop();
|
game_folder.pop();
|
||||||
|
|
||||||
Some(format!("{}/", game_folder.to_str().unwrap()).replace("\\", "/"))
|
Some(format!("{}/", game_folder.to_str().unwrap()).replace('\\', "/"))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user