std.fmt: fix unecessary deref on user-defined format function

When formatting a pointer to user type, currently it needs to be
dereferenced first, then call `formatType` on the child type.

Fix the problem by checking for "format" function on not only the type
itself, but also the struct it points to. Add hasMethod to std.meta.
993a83081aKhang Nguyen Duy committed on 1/23/2024, 9:03:45 AM· committed by Andrew Kelleyparentaef1da1
2 files changedLine totals unavailable