mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
dropEmptyInitThenConcatStringsSep -> concatStringSep: experimental features do not render as empty strings
This commit is contained in:
parent
e64643bf63
commit
3b77f13451
@ -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…
Reference in New Issue
Block a user