]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/common/test_hobject: fmt fixes
authorMatan Breizman <mbreizma@redhat.com>
Wed, 7 Aug 2024 14:21:06 +0000 (14:21 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 14 Aug 2024 09:56:25 +0000 (09:56 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/test/common/test_hobject.cc
src/test/crimson/test_socket.cc
src/test/crush/crush.cc

index d9600c83e1a7bf4ec433d627250165cb9c77e0a2..9f994cb7d95b5c78aaa55e3f129822e85947c00e 100644 (file)
@@ -201,10 +201,10 @@ namespace fmt {
 template <>
 struct formatter<test_hobject_fmt_t> {
 
-  auto parse(format_parse_context& ctx) { return ctx.begin(); }
+  constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }
 
   template <typename FormatContext>
-  auto format(const test_hobject_fmt_t& ho, FormatContext& ctx)
+  auto format(const test_hobject_fmt_t& ho, FormatContext& ctx) const
   {
     if (ho == hobject_t{}) {
       return fmt::format_to(ctx.out(), "MIN");
index fb9d60993ed2d49861363b74441390f5eaf79a7c..ec8ac0219d8d67cd9037bac9037dc40c5d8c0e38 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "common/ceph_argparse.h"
 #include <fmt/os.h>
+#include <fmt/std.h>
 #include <seastar/core/app-template.hh>
 #include <seastar/core/gate.hh>
 #include <seastar/core/sharded.hh>
index c9f670a9e322a233c615349f2c6808b5aa755c16..9d5667d9587c22bb2b82569028f1dde21b562cc5 100644 (file)
@@ -12,6 +12,7 @@
 #include <iostream>
 #include <memory>
 #include <set>
+#include <fmt/ranges.h>
 
 #include "common/ceph_argparse.h"
 #include "common/common_init.h"