diff options
author | Bob Haarman <inglorion@chromium.org> | 2023-02-14 22:14:04 +0000 |
---|---|---|
committer | Bob Haarman <inglorion@chromium.org> | 2023-02-16 01:59:26 +0000 |
commit | 66ae04316cd799f9c8515a70a2890a2544e22836 (patch) | |
tree | 0e3820a80bd525187a78790e8ce5b13bca3275fa | |
parent | 5b8596cefd1a61252501943f2534323708338732 (diff) | |
download | vboot-66ae04316cd799f9c8515a70a2890a2544e22836.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
Signed-off-by: Bob Haarman <inglorion@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4250778
Reviewed-by: Allen Webb <allenwebb@google.com>
-rw-r--r-- | rust/vboot_reference-sys/build.rs | 22 |
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", |