1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-29 02:10:04 +08:00

fix all clippy

This commit is contained in:
2020-01-11 00:55:29 +08:00
parent b04d0e3598
commit 0b52cda6ba
3 changed files with 24 additions and 26 deletions

View File

@@ -40,13 +40,10 @@ pub fn get_archive_version(gid: &str, aid: &str) -> XResult<String> {
}
}
pub fn create_build_json(args: &Vec<String>) {
match find_build_json_in_current() {
Some(_) => {
print_message(MessageType::ERROR, &format!("File exits: {}", BUILD_JSON));
return;
},
None => (), // OK
pub fn create_build_json(args: &[String]) {
if find_build_json_in_current().is_some() {
print_message(MessageType::ERROR, &format!("File exits: {}", BUILD_JSON));
return;
}
let mut java_version = "";