Fix indention
This commit is contained in:
parent
76967a008b
commit
6ccc1e88b7
@ -261,21 +261,21 @@ fn library_in(short_name: &str, version: &Version, dir_to_search: &Path) -> Opti
|
|||||||
Some(i) => {
|
Some(i) => {
|
||||||
debug!("Maybe {} is a version", f_name.slice(i + 1, f_name.len()));
|
debug!("Maybe {} is a version", f_name.slice(i + 1, f_name.len()));
|
||||||
match try_parsing_version(f_name.slice(i + 1, f_name.len())) {
|
match try_parsing_version(f_name.slice(i + 1, f_name.len())) {
|
||||||
Some(ref found_vers) if version == found_vers => {
|
Some(ref found_vers) if version == found_vers => {
|
||||||
match f_name.slice(0, i).rfind('-') {
|
match f_name.slice(0, i).rfind('-') {
|
||||||
Some(j) => {
|
Some(j) => {
|
||||||
let lib_prefix = match p_path.extension_str() {
|
let lib_prefix = match p_path.extension_str() {
|
||||||
Some(ref s) if dll_filetype == *s => &dll_prefix,
|
Some(ref s) if dll_filetype == *s => &dll_prefix,
|
||||||
_ => &rlib_prefix,
|
_ => &rlib_prefix,
|
||||||
};
|
};
|
||||||
debug!("Maybe {} equals {}", f_name.slice(0, j), *lib_prefix);
|
debug!("Maybe {} equals {}", f_name.slice(0, j), *lib_prefix);
|
||||||
if f_name.slice(0, j) == *lib_prefix {
|
if f_name.slice(0, j) == *lib_prefix {
|
||||||
result_filename = Some(p_path.clone());
|
result_filename = Some(p_path.clone());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
None => break
|
None => break
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
_ => { f_name = f_name.slice(0, i); }
|
_ => { f_name = f_name.slice(0, i); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user