From 97839b342882d92a53a7b698663ccd54296c848c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 16 Dec 2022 20:05:43 +0800 Subject: [PATCH] osd/scrubber: mark fmt::formatter<..>::format() as const as it should be const, and more importantly, it'd fail the build with fmtlib v9, as its caller(s) is marked as `const`. Signed-off-by: Kefu Chai --- src/osd/scrubber/scrub_backend.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/scrubber/scrub_backend.h b/src/osd/scrubber/scrub_backend.h index d2ff62f96fd..3e644b241ff 100644 --- a/src/osd/scrubber/scrub_backend.h +++ b/src/osd/scrubber/scrub_backend.h @@ -544,7 +544,7 @@ struct fmt::formatter> { template auto format(const std::pair& x, - FormatContext& ctx) + FormatContext& ctx) const { return fmt::format_to(ctx.out(), "{{ {} - {} }}", -- 2.39.5