From 66ae04316cd799f9c8515a70a2890a2544e22836 Mon Sep 17 00:00:00 2001 From: Bob Haarman Date: Tue, 14 Feb 2023 22:14:04 +0000 Subject: 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 Signed-off-by: Bob Haarman Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4250778 Reviewed-by: Allen Webb --- rust/vboot_reference-sys/build.rs | 22 +++++++++++----------- 1 file 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", -- cgit v1.2.1