From 23e05a045bd824e75d9b97e601bdfd53871bda12 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 29 Oct 2018 12:41:52 +0200 Subject: [PATCH] cql: convert Cql.g sprint()s to fmt The only sprint() call had an extra complication due to quoting, which can be removed now. --- cql3/Cql.g | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cql3/Cql.g b/cql3/Cql.g index dce69b7146..438a737fa2 100644 --- a/cql3/Cql.g +++ b/cql3/Cql.g @@ -253,8 +253,7 @@ struct uninitialized { { for (auto&& p : operations) { if (*p.first == *key && !p.second->is_compatible_with(update)) { - // \%s is escaped for antlr - add_recognition_error(sprint("Multiple incompatible setting of column \%s", *key)); + add_recognition_error(format("Multiple incompatible setting of column {}", *key)); } } operations.emplace_back(std::move(key), std::move(update));