diff --git a/flake.nix b/flake.nix index 507430a..ebdcbb7 100644 --- a/flake.nix +++ b/flake.nix @@ -120,10 +120,14 @@ } ); - checks = pkgs.callPackages ./checks { - inherit pkgs; - mkLib = mkLib; - }; + checks = + pkgs.callPackages ./checks { + inherit pkgs; + mkLib = mkLib; + } + // { + flakebox = flakeboxLib.flakeboxBin; + }; in { inherit checks; diff --git a/flakebox-bin/src/main.rs b/flakebox-bin/src/main.rs index b84e7d7..748728a 100644 --- a/flakebox-bin/src/main.rs +++ b/flakebox-bin/src/main.rs @@ -125,9 +125,9 @@ fn lint_cargo_toml_fix_ci_build_profile(opts: &Opts) -> AppResult<()> { fn lint_cargo_toml(opts: &Opts, problems: &mut Vec) -> AppResult<()> { let (path, cargo_toml) = load_root_cargo_toml(opts)?; - if let Some(toml_edit::Item::Table(ref workspace)) = cargo_toml.get("workspace") { + if let Some(toml_edit::Item::Table(workspace)) = cargo_toml.get("workspace") { match workspace.get("resolver") { - Some(toml_edit::Item::Value(toml_edit::Value::String(ref v))) if v.value() == "2" => {} + Some(toml_edit::Item::Value(toml_edit::Value::String(v))) if v.value() == "2" => {} _ => { problems.push(LintItem { path: path.clone(),