Fix indention

This commit is contained in:
Jan Niklas Hasse 2014-01-12 02:36:29 +01:00
parent 76967a008b
commit 6ccc1e88b7

View File

@ -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); }