fmt: update use of *T to *const T