dropEmptyInitThenConcatStringsSep -> concatStringSep: experimental features do not render as empty strings

This commit is contained in:
Robert Hensing 2024-07-13 01:16:33 +02:00
parent e64643bf63
commit 3b77f13451

View File

@ -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