Skip to content

Commit 6ccc1e8

Browse files
committed
Fix indention
1 parent 76967a0 commit 6ccc1e8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/librustpkg/path_util.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -261,21 +261,21 @@ fn library_in(short_name: &str, version: &Version, dir_to_search: &Path) -> Opti
261261
Some(i) => {
262262
debug!("Maybe {} is a version", f_name.slice(i + 1, f_name.len()));
263263
match try_parsing_version(f_name.slice(i + 1, f_name.len())) {
264-
Some(ref found_vers) if version == found_vers => {
265-
match f_name.slice(0, i).rfind('-') {
266-
Some(j) => {
264+
Some(ref found_vers) if version == found_vers => {
265+
match f_name.slice(0, i).rfind('-') {
266+
Some(j) => {
267267
let lib_prefix = match p_path.extension_str() {
268268
Some(ref s) if dll_filetype == *s => &dll_prefix,
269269
_ => &rlib_prefix,
270270
};
271271
debug!("Maybe {} equals {}", f_name.slice(0, j), *lib_prefix);
272272
if f_name.slice(0, j) == *lib_prefix {
273-
result_filename = Some(p_path.clone());
274-
}
275-
break;
276-
}
277-
None => break
278-
}
273+
result_filename = Some(p_path.clone());
274+
}
275+
break;
276+
}
277+
None => break
278+
}
279279

280280
}
281281
_ => { f_name = f_name.slice(0, i); }

0 commit comments

Comments
 (0)