diff --git a/repair/hash.hh b/repair/hash.hh index 06a345402e..ad44184710 100644 --- a/repair/hash.hh +++ b/repair/hash.hh @@ -2,6 +2,7 @@ #include #include #include +#include #include "schema/schema.hh" class decorated_key_with_hash; @@ -40,4 +41,8 @@ public: repair_hash do_hash_for_mf(const decorated_key_with_hash& dk_with_hash, const mutation_fragment& mf); }; - +template <> struct fmt::formatter : fmt::formatter { + auto format(const repair_hash& x, fmt::format_context& ctx) const { + return fmt::format_to(ctx.out(), "{}", x.hash); + } +};