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>
diff --git a/rust/bssl-sys/build.rs b/rust/bssl-sys/build.rs
index aa211e8..4e6f593 100644
--- a/rust/bssl-sys/build.rs
+++ b/rust/bssl-sys/build.rs
@@ -74,7 +74,7 @@
     }
 
     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 @@
     // 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.