Commit 96978d34 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

fix calls to fmt::format with non-consteval format strings

Summary: Newly a thing with `fmt` v8.

Differential Revision: D33995623

fbshipit-source-id: 4560f1498a8f8253ab572105a441b735d53d776f
parent 17d5b56c
......@@ -58,7 +58,7 @@ TEST(TestAutoTimer, HandleBasicClosure) {
timer.log("foo");
ASSERT_EQ("foo", StubLogger::m);
ASSERT_EQ(2, StubLogger::t);
timer.logFormat("bar {}", 5e-2);
timer.logFormat(fmt::runtime("bar {}"), 5e-2);
ASSERT_EQ("bar 0.05", StubLogger::m);
ASSERT_EQ(0, StubLogger::t);
}
......@@ -70,7 +70,7 @@ TEST(TestAutoTimer, HandleBasic) {
timer.log("foo");
ASSERT_EQ("foo", StubLogger::m);
ASSERT_EQ(2, StubLogger::t);
timer.logFormat("bar {}", 5e-2);
timer.logFormat(fmt::runtime("bar {}"), 5e-2);
ASSERT_EQ("bar 0.05", StubLogger::m);
ASSERT_EQ(0, StubLogger::t);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment