mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
MultiCommand::toJSON: Fix use-after-move
This commit is contained in:
parent
b9b51f9579
commit
1ffb26311b
@ -410,8 +410,8 @@ nlohmann::json MultiCommand::toJSON()
|
||||
auto cat = nlohmann::json::object();
|
||||
cat["id"] = command->category();
|
||||
cat["description"] = trim(categories[command->category()]);
|
||||
j["category"] = std::move(cat);
|
||||
cat["experimental-feature"] = command->experimentalFeature();
|
||||
j["category"] = std::move(cat);
|
||||
cmds[name] = std::move(j);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user