mirror of
https://github.com/NixOS/nix
synced 2025-07-05 20:41:47 +02:00
dropEmptyInitThenConcatStringsSep -> concatStringSep: experimental features do not render as empty strings
This commit is contained in:
parent
e64643bf63
commit
3b77f13451
1 changed files with 3 additions and 1 deletions
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
#include "strings.hh"
|
||||
|
||||
namespace nix {
|
||||
|
||||
Config::Config(StringMap initials)
|
||||
|
@ -362,7 +364,7 @@ template<> std::string BaseSetting<std::set<ExperimentalFeature>>::to_string() c
|
|||
StringSet stringifiedXpFeatures;
|
||||
for (const auto & feature : value)
|
||||
stringifiedXpFeatures.insert(std::string(showExperimentalFeature(feature)));
|
||||
return dropEmptyInitThenConcatStringsSep(" ", stringifiedXpFeatures);
|
||||
return concatStringsSep(" ", stringifiedXpFeatures);
|
||||
}
|
||||
|
||||
template<> StringMap BaseSetting<StringMap>::parse(const std::string & str) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue