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 <tchaikov@gmail.com>
This commit is contained in:
Kefu Chai 2022-12-16 20:05:43 +08:00
parent d9075c5fcf
commit 97839b3428

View File

@ -544,7 +544,7 @@ struct fmt::formatter<std::pair<hobject_t, data_omap_digests_t>> {
template <typename FormatContext>
auto format(const std::pair<hobject_t, data_omap_digests_t>& x,
FormatContext& ctx)
FormatContext& ctx) const
{
return fmt::format_to(ctx.out(),
"{{ {} - {} }}",