From 84c60740a30a6e28662defae8ca6d8df437e01fa Mon Sep 17 00:00:00 2001 From: Rahul Arya Date: Thu, 30 Mar 2023 01:40:14 +0000 Subject: [Connection Manager] Clean up build.rs Bug: 272572974 Test: cargo clippy -- -D:warnings Change-Id: I80ab16dff5e9badd38b767257a8aacd997e26e8c --- system/rust/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/rust/build.rs') diff --git a/system/rust/build.rs b/system/rust/build.rs index f0e49e69df..af1895276d 100644 --- a/system/rust/build.rs +++ b/system/rust/build.rs @@ -11,7 +11,7 @@ fn main() { let dest_file = File::create(dest_path).unwrap(); let pdl = Command::new("pdl") - .args(&["--output-format", "rust_no_alloc", "src/packets.pdl"]) + .args(["--output-format", "rust_no_alloc", "src/packets.pdl"]) .stdout(Stdio::piped()) .spawn() .unwrap(); @@ -22,7 +22,7 @@ fn main() { rustfmt.wait().unwrap(); if let Some(err) = rustfmt.stderr { - panic!("{:?}", err); + panic!("{err:?}"); } println!("cargo:rerun-if-changed=build.rs"); -- cgit v1.2.3-59-g8ed1b