perf(diagnostic): use Cow<'static, str>
over String
#4175
Merged
Cow<'static, str>
over String
#4175