Skip to content

Commit

Permalink
buildRustCrate: fewer backslashes
Browse files Browse the repository at this point in the history
This is a slight readability boost, I think.
  • Loading branch information
alyssais committed Mar 27, 2020
1 parent acfe7e0 commit 7533876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/rust/build-rust-crate/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ stdenv.mkDerivation (rec {
);

crateFeatures = lib.optionalString (crate ? features)
(lib.concatMapStringsSep " " (f: "--cfg feature=\\\"${f}\\\"") (crate.features ++ features));
(lib.concatMapStringsSep " " (f: ''--cfg feature=\"${f}\"'') (crate.features ++ features));

libName = if crate ? libName then crate.libName else crate.crateName;
libPath = if crate ? libPath then crate.libPath else "";
Expand Down

0 comments on commit 7533876

Please sign in to comment.