浏览代码

cli: Fix clippy (#803)

Armani Ferrante 4 年之前
父节点
当前提交
0de09e71a2
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      cli/src/lib.rs

+ 4 - 1
cli/src/lib.rs

@@ -442,6 +442,7 @@ fn new_program(name: &str) -> Result<()> {
     Ok(())
 }
 
+#[allow(clippy::too_many_arguments)]
 pub fn build(
     cfg_override: &ConfigOverride,
     idl: Option<String>,
@@ -518,6 +519,7 @@ pub fn build(
     Ok(())
 }
 
+#[allow(clippy::too_many_arguments)]
 fn build_all(
     cfg: &WithPath<Config>,
     cfg_path: &Path,
@@ -552,6 +554,7 @@ fn build_all(
 }
 
 // Runs the build command outside of a workspace.
+#[allow(clippy::too_many_arguments)]
 fn build_cwd(
     cfg: &WithPath<Config>,
     cargo_toml: PathBuf,
@@ -799,7 +802,7 @@ fn docker_build(
 fn _build_cwd(idl_out: Option<PathBuf>, slop: Option<Vec<String>>) -> Result<()> {
     let exit = std::process::Command::new("cargo")
         .arg("build-bpf")
-        .args(slop.unwrap_or(vec![]))
+        .args(slop.unwrap_or_default())
         .stdout(Stdio::inherit())
         .stderr(Stdio::inherit())
         .output()