diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-04-11 11:29:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 11:29:35 +0200 |
commit | deb7f4b466574c12a8384f1c76df0141c6f7ca69 (patch) | |
tree | 9593ce41f8df08fea1a911b48d43ee7d517bf041 /src/libutil/experimental-features.cc | |
parent | 73eb6a2a578c85fe4a9399bdc20b4ff943fb49b4 (diff) |
Nitpicks
Diffstat (limited to 'src/libutil/experimental-features.cc')
-rw-r--r-- | src/libutil/experimental-features.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libutil/experimental-features.cc b/src/libutil/experimental-features.cc index 1cd0dbb79..5b4418714 100644 --- a/src/libutil/experimental-features.cc +++ b/src/libutil/experimental-features.cc @@ -204,7 +204,7 @@ const std::optional<ExperimentalFeature> parseExperimentalFeature(const std::str { using ReverseXpMap = std::map<std::string_view, ExperimentalFeature>; - static std::unique_ptr<ReverseXpMap> reverseXpMap = [](){ + static std::unique_ptr<ReverseXpMap> reverseXpMap = []() { auto reverseXpMap = std::make_unique<ReverseXpMap>(); for (auto & xpFeature : xpFeatureDetails) (*reverseXpMap)[xpFeature.name] = xpFeature.tag; @@ -223,7 +223,8 @@ std::string_view showExperimentalFeature(const ExperimentalFeature tag) return xpFeatureDetails[(size_t)tag].name; } -nlohmann::json documentExperimentalFeatures() { +nlohmann::json documentExperimentalFeatures() +{ StringMap res; for (auto & xpFeature : xpFeatureDetails) res[std::string { xpFeature.name }] = |