clang-format

Former-commit-id: 0ef52c892fdff56800f509cecf010f95c6e7e421
This commit is contained in:
wxyu 2019-10-23 17:14:50 +08:00
parent edcb0bc5e1
commit 72ae6f59cc
3 changed files with 3 additions and 5 deletions

View File

@ -173,7 +173,7 @@ ResourceMgr::GetNumGpuResource() const {
json
ResourceMgr::Dump() const {
json resources{};
for (auto &res : resources_) {
for (auto& res : resources_) {
resources.push_back(res->Dump());
}
json ret{

View File

@ -41,7 +41,7 @@ Node::GetNeighbours() {
json
Node::Dump() const {
json neighbours;
for (auto & neighbour : neighbours_) {
for (auto& neighbour : neighbours_) {
json n;
n["id"] = neighbour.first;
n["connection"] = neighbour.second.connection.Dump();

View File

@ -44,9 +44,7 @@ ToString(ResourceType type) {
case ResourceType::GPU: {
return "GPU";
}
default: {
return "UNKNOWN";
}
default: { return "UNKNOWN"; }
}
}