Skip to content

Commit

Permalink
Make "#" a char in the nix module
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbor committed Jul 11, 2024
1 parent 2a1c89a commit 6288660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const NIX_ENV_MARKER: &str = "ZINN_NIX_ENV";
fn to_flake_parameters<'a>(nix_config: &'a NixConfig, packages: &'a[String]) -> impl Iterator<Item = String> + 'a {
packages.iter()
.map(|p| {
if p.contains("#") {
if p.contains('#') {
p.clone()
} else {
format!("{}#{}", nix_config.nixpkgs, p)
Expand Down

0 comments on commit 6288660

Please sign in to comment.