Skip to content

Commit 2797852

Browse files
authored
Fixed a warning from recent rustcs
1 parent 4a41319 commit 2797852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn main() {
66
let custom_lib_dir = custom_lib_path.parent().unwrap().to_string_lossy();
77

88
let custom_lib_name = custom_lib_path.file_stem().unwrap().to_string_lossy();
9-
let custom_lib_name = custom_lib_name.trim_left_matches("lib");
9+
let custom_lib_name = custom_lib_name.trim_start_matches("lib");
1010

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

0 commit comments

Comments
 (0)