From c4b7e2bf72c11958962bdd84ef864ef77561c4d3 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 20 Jun 2019 16:32:34 +1000 Subject: [PATCH] meta/info: correctly balance some braces in JSON output --- meta/info.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/meta/info.cpp b/meta/info.cpp index 8f1f815..e04bbe4 100644 --- a/meta/info.cpp +++ b/meta/info.cpp @@ -29,13 +29,11 @@ cruft::vk::meta::operator<< (std::ostream &os, info const &) { cruft::vk::instance instance; - os << "[ " - << "available_layers: [ " - << cruft::iterator::make_infix (cruft::vk::instance::available_layers ()) - << " ] }" - << ", instance: " << instance - << ", devices: [ " << cruft::iterator::make_infix (cruft::vk::physical_device::find (instance)) << " ], " - << " } ]\n"; - - return os; + return os << "{ available_layers: [ " + << cruft::iterator::make_infix (cruft::vk::instance::available_layers ()) + << " ]" + << ", instance: " << instance + << ", devices: [ " + << cruft::iterator::make_infix (cruft::vk::physical_device::find (instance)) << " ]" + << ", }"; }