Skip to content

Commit f47576d

Browse files
committed
fmt
1 parent 7a7f78d commit f47576d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ fn main() {
55
let custom_lib_dir = custom_lib_path.parent().unwrap().to_string_lossy();
66

77
let custom_lib_name = custom_lib_path.file_stem().unwrap().to_string_lossy();
8-
let custom_lib_name = custom_lib_name.strip_prefix("lib").unwrap_or(custom_lib_name.as_ref());
8+
let custom_lib_name = custom_lib_name
9+
.strip_prefix("lib")
10+
.unwrap_or(custom_lib_name.as_ref());
911

1012
println!("cargo:rustc-link-search=native={}", custom_lib_dir);
1113
println!("cargo:rustc-link-lib=static={}", custom_lib_name);

0 commit comments

Comments
 (0)