mirror of
https://boringssl.googlesource.com/boringssl
synced 2026-07-21 14:43:51 +00:00
bssl-sys: fix clippy warnings
Change-Id: Ie7875c7607a3bfbdebcb80995477fe7481ed40de Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/98688 Reviewed-by: Xiangfei Ding <xfding@google.com> Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: Adam Langley <agl@google.com> Presubmit-BoringSSL-Verified: boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
committed by
boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com
parent
d087df8601
commit
5ac7567c23
@@ -74,7 +74,7 @@ fn get_bssl_build_dir() -> PathBuf {
|
||||
}
|
||||
|
||||
let crate_dir = env::var_os("CARGO_MANIFEST_DIR").unwrap();
|
||||
return Path::new(&crate_dir).join("../../build");
|
||||
Path::new(&crate_dir).join("../../build")
|
||||
}
|
||||
|
||||
fn get_cpp_runtime_lib() -> Option<String> {
|
||||
@@ -104,11 +104,13 @@ fn main() {
|
||||
// Find the bindgen generated target platform bindings file and put it into
|
||||
// OUT_DIR/bindgen.rs.
|
||||
let bindgen_source_file = bssl_sys_build_dir.join(format!("wrapper_{}.rs", target));
|
||||
std::fs::copy(&bindgen_source_file, &bindgen_out_file).expect(&format!(
|
||||
"Could not copy bindings from '{}' to '{}'",
|
||||
bindgen_source_file.display(),
|
||||
bindgen_out_file.display()
|
||||
));
|
||||
std::fs::copy(&bindgen_source_file, &bindgen_out_file).unwrap_or_else(|_| {
|
||||
panic!(
|
||||
"Could not copy bindings from '{}' to '{}'",
|
||||
bindgen_source_file.display(),
|
||||
bindgen_out_file.display()
|
||||
)
|
||||
});
|
||||
println!("cargo:rerun-if-changed={}", bindgen_source_file.display());
|
||||
|
||||
// Statically link libraries.
|
||||
|
||||
Reference in New Issue
Block a user