mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
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:
parent
d9075c5fcf
commit
97839b3428
@ -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(),
|
||||
"{{ {} - {} }}",
|
||||
|
Loading…
Reference in New Issue
Block a user