Skip to content

Commit

Permalink
Fix new clippy lints (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
willbush authored Oct 23, 2024
2 parents e0fb7c0 + 4123db9 commit 1e64970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ fn mutate_nix_instatiate_arguments_based_on_cfg(

// Wire it up so that it can be imported as `import <test-nixpkgs> { }`.
command.arg("-I");
command.arg(&format!("test-nixpkgs={}", mock_nixpkgs_path.display()));
command.arg(format!("test-nixpkgs={}", mock_nixpkgs_path.display()));

// Retrieve the path to the real nixpkgs lib, then wire it up to `import <test-nixpkgs/lib>`.
let nixpkgs_lib = env::var("NIXPKGS_VET_NIXPKGS_LIB")
.with_context(|| "Could not get environment variable NIXPKGS_VET_NIXPKGS_LIB")?;

command.arg("-I");
command.arg(&format!("test-nixpkgs/lib={nixpkgs_lib}"));
command.arg(format!("test-nixpkgs/lib={nixpkgs_lib}"));

Ok(())
}
Expand Down

0 comments on commit 1e64970

Please sign in to comment.