summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Haarman <inglorion@chromium.org>2023-02-14 22:14:04 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-29 08:19:29 +0000
commit78cdb475081406acc8f0a0de6af90c4b718f6430 (patch)
tree0e3820a80bd525187a78790e8ce5b13bca3275fa
parentd1160302ceb2e3ae82b2082045c6e4120db46672 (diff)
downloadvboot-78cdb475081406acc8f0a0de6af90c4b718f6430.tar.gz
vboot_reference-sys: Fix needless-borrow lints
Pre-submit hooks pointed out several unnecessary borrows in the build script. This fixes those. BRANCH=none BUG=None TEST=cq Change-Id: I92987004db3573084fa91db3b72f09b7b7327cfb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4250778 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4380988 Commit-Queue: Cheng Yueh <cyueh@chromium.org> Auto-Submit: Phoebe Wang <phoebewang@chromium.org> Reviewed-by: Cheng Yueh <cyueh@chromium.org> Tested-by: Phoebe Wang <phoebewang@chromium.org>
-rw-r--r--rust/vboot_reference-sys/build.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/rust/vboot_reference-sys/build.rs b/rust/vboot_reference-sys/build.rs
index d32bc2fd..de8de900 100644
--- a/rust/vboot_reference-sys/build.rs
+++ b/rust/vboot_reference-sys/build.rs
@@ -23,20 +23,20 @@ fn bindings_generation() -> io::Result<()> {
let header_dir = Path::new(".");
let header_path = header_dir.join("crossystem.h");
println!("cargo:rerun-if-changed={}", header_path.display());
- let status = Command::new(&bindgen)
- .args(&["--default-enum-style", "rust"])
- .args(&["--blacklist-type", "__rlim64_t"])
- .args(&["--raw-line", "pub type __rlim64_t = u64;"])
- .args(&["--blacklist-type", "__u\\d{1,2}"])
- .args(&["--raw-line", "pub type __u8 = u8;"])
- .args(&["--raw-line", "pub type __u16 = u16;"])
- .args(&["--raw-line", "pub type __u32 = u32;"])
- .args(&["--blacklist-type", "__uint64_t"])
+ let status = Command::new(bindgen)
+ .args(["--default-enum-style", "rust"])
+ .args(["--blacklist-type", "__rlim64_t"])
+ .args(["--raw-line", "pub type __rlim64_t = u64;"])
+ .args(["--blacklist-type", "__u\\d{1,2}"])
+ .args(["--raw-line", "pub type __u8 = u8;"])
+ .args(["--raw-line", "pub type __u16 = u16;"])
+ .args(["--raw-line", "pub type __u32 = u32;"])
+ .args(["--blacklist-type", "__uint64_t"])
.arg("--no-layout-tests")
.arg("--disable-header-comment")
- .args(&["--output", gen_file.to_str().unwrap()])
+ .args(["--output", gen_file.to_str().unwrap()])
.arg(header_path.to_str().unwrap())
- .args(&[
+ .args([
"--",
"-DUSE_BINDGEN",
"-D_FILE_OFFSET_BITS=64",