diff --git a/aya-tool/src/generate.rs b/aya-tool/src/generate.rs index 6348957f..d8d724d7 100644 --- a/aya-tool/src/generate.rs +++ b/aya-tool/src/generate.rs @@ -76,7 +76,7 @@ pub fn generate>( let output = Command::new("bindgen") .arg(file_path) - .args(&flags) + .args(flags) .output() .map_err(Error::Bindgen)?; diff --git a/xtask/src/docs/mod.rs b/xtask/src/docs/mod.rs index b6779cba..bfeca3a9 100644 --- a/xtask/src/docs/mod.rs +++ b/xtask/src/docs/mod.rs @@ -72,7 +72,7 @@ fn build_docs(working_dir: &PathBuf, abs_header_path: &Path) -> Result<(), anyho abs_header_path.to_str().unwrap() ), ) - .args(&args) + .args(args) .status() .expect("failed to build aya docs"); assert!(status.success());