Skip to content

Commit 78d0255

Browse files
committed
osd/scrub: fix missing 'const' on some formatters
required to pass CI checks. co-author: Matan Breizman <[email protected]> Signed-off-by: Ronen Friedman <[email protected]>
1 parent 503ebee commit 78d0255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/osd/scrubber_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ namespace fmt {
243243
template <>
244244
struct formatter<Scrub::delay_cause_t> : ::fmt::formatter<std::string_view> {
245245
template <typename FormatContext>
246-
auto format(Scrub::delay_cause_t cause, FormatContext& ctx)
246+
auto format(Scrub::delay_cause_t cause, FormatContext& ctx) const
247247
{
248248
using enum Scrub::delay_cause_t;
249249
std::string_view desc;
@@ -359,7 +359,7 @@ struct fmt::formatter<requested_scrub_t> {
359359
constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }
360360

361361
template <typename FormatContext>
362-
auto format(const requested_scrub_t& rs, FormatContext& ctx)
362+
auto format(const requested_scrub_t& rs, FormatContext& ctx) const
363363
{
364364
return fmt::format_to(ctx.out(),
365365
"(plnd:{}{}{}{}{}{})",

0 commit comments

Comments
 (0)