mirror of
https://github.com/jht5945/buildj.git
synced 2025-12-29 10:20:04 +08:00
update {} -> ()
This commit is contained in:
@@ -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 = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user