Skip to content

Commit

Permalink
Fixed a warning from recent rustcs
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Oct 20, 2019
1 parent 4a41319 commit 2797852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fn main() {
let custom_lib_dir = custom_lib_path.parent().unwrap().to_string_lossy();

let custom_lib_name = custom_lib_path.file_stem().unwrap().to_string_lossy();
let custom_lib_name = custom_lib_name.trim_left_matches("lib");
let custom_lib_name = custom_lib_name.trim_start_matches("lib");

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

0 comments on commit 2797852

Please sign in to comment.