1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-14 22:42:41 +01:00

Complete the toJSON instance for Setting<T>

Don't let it just contain the value, but also the other fields of the
setting (description, aliases, etc..)
This commit is contained in:
regnat 2020-09-09 11:35:33 +02:00
parent 3b57181f8e
commit 3c525d1590
3 changed files with 19 additions and 29 deletions

View file

@ -162,11 +162,6 @@ template<> std::string BaseSetting<SandboxMode>::to_string() const
else abort();
}
template<> nlohmann::json BaseSetting<SandboxMode>::toJSON()
{
return AbstractSetting::toJSON();
}
template<> void BaseSetting<SandboxMode>::convertToArg(Args & args, const std::string & category)
{
args.addFlag({