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:
parent
3b57181f8e
commit
3c525d1590
3 changed files with 19 additions and 29 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue