Skip to content

Commit 4e3146c

Browse files
committed
test/common/test_hobject: fmt fixes
Signed-off-by: Matan Breizman <[email protected]>
1 parent 63594b2 commit 4e3146c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/test/common/test_hobject.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ namespace fmt {
201201
template <>
202202
struct formatter<test_hobject_fmt_t> {
203203

204-
auto parse(format_parse_context& ctx) { return ctx.begin(); }
204+
constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }
205205

206206
template <typename FormatContext>
207-
auto format(const test_hobject_fmt_t& ho, FormatContext& ctx)
207+
auto format(const test_hobject_fmt_t& ho, FormatContext& ctx) const
208208
{
209209
if (ho == hobject_t{}) {
210210
return fmt::format_to(ctx.out(), "MIN");

src/test/crimson/test_socket.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include "common/ceph_argparse.h"
55
#include <fmt/os.h>
6+
#include <fmt/std.h>
67
#include <seastar/core/app-template.hh>
78
#include <seastar/core/gate.hh>
89
#include <seastar/core/sharded.hh>

src/test/crush/crush.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <iostream>
1313
#include <memory>
1414
#include <set>
15+
#include <fmt/ranges.h>
1516

1617
#include "common/ceph_argparse.h"
1718
#include "common/common_init.h"

0 commit comments

Comments
 (0)