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

update {} -> ()

This commit is contained in:
2019-08-04 23:10:07 +08:00
parent 776e33c041
commit aa3ca6f5fc

View File

@@ -91,7 +91,7 @@ pub fn get_local_java_home(version: &str) -> Option<String> {
} }
let last_index_of_slash = path_name.rfind('/'); let last_index_of_slash = path_name.rfind('/');
match last_index_of_slash { match last_index_of_slash {
None => {}, None => (),
Some(i) => path_name = &path_name[i+1..], Some(i) => path_name = &path_name[i+1..],
}; };
let mut matched_path = ""; let mut matched_path = "";