提交 72ae6f59 编写于 作者: W wxyu

clang-format


Former-commit-id: 0ef52c892fdff56800f509cecf010f95c6e7e421
上级 edcb0bc5
......@@ -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{
......
......@@ -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();
......
......@@ -44,9 +44,7 @@ ToString(ResourceType type) {
case ResourceType::GPU: {
return "GPU";
}
default: {
return "UNKNOWN";
}
default: { return "UNKNOWN"; }
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册