diff --git a/xtask/src/build_ebpf.rs b/xtask/src/build_ebpf.rs index 1ba16b2d..9b9e56d5 100644 --- a/xtask/src/build_ebpf.rs +++ b/xtask/src/build_ebpf.rs @@ -81,7 +81,7 @@ fn build_rust_ebpf(opts: &Options) -> anyhow::Result<()> { fn get_libbpf_headers>(libbpf_dir: P, include_path: P) -> anyhow::Result<()> { let dir = include_path.as_ref(); - fs::create_dir_all(&dir)?; + fs::create_dir_all(dir)?; let status = Command::new("make") .current_dir(libbpf_dir.as_ref().join("src")) .arg(format!("INCLUDEDIR={}", dir.as_os_str().to_string_lossy())) diff --git a/xtask/src/docs/mod.rs b/xtask/src/docs/mod.rs index 8705cae7..dfdd827f 100644 --- a/xtask/src/docs/mod.rs +++ b/xtask/src/docs/mod.rs @@ -55,7 +55,7 @@ pub fn docs() -> Result<(), anyhow::Error> { fn build_docs(working_dir: &PathBuf, abs_header_path: &Path) -> Result<(), anyhow::Error> { let replace = Command::new("sed") - .current_dir(&working_dir) + .current_dir(working_dir) .args(vec!["-i.bak", "s/crabby.svg/crabby_dev.svg/", "src/lib.rs"]) .status() .expect("failed to replace logo"); @@ -64,7 +64,7 @@ fn build_docs(working_dir: &PathBuf, abs_header_path: &Path) -> Result<(), anyho let args = vec!["+nightly", "doc", "--no-deps", "--all-features"]; let status = Command::new("cargo") - .current_dir(&working_dir) + .current_dir(working_dir) .env( "RUSTDOCFLAGS", format!("--html-in-header {}", abs_header_path.to_str().unwrap()),