diff --git a/Libraries/LibGC/Root.h b/Libraries/LibGC/Root.h index eb9a2be3f2f..f9f100cea30 100644 --- a/Libraries/LibGC/Root.h +++ b/Libraries/LibGC/Root.h @@ -170,6 +170,14 @@ struct Traits> : public DefaultTraits> { static unsigned hash(GC::Root const& handle) { return Traits::hash(handle); } }; +template +struct Formatter> : Formatter { + ErrorOr format(FormatBuilder& builder, GC::Root const& value) + { + return Formatter::format(builder, value.ptr()); + } +}; + namespace Detail { template inline constexpr bool IsHashCompatible, T> = true;