icu4x
icu4x copied to clipboard
LocaleCanonicalizer and LocaleDirectionality should use `AsRef` for their type parameter
In https://github.com/unicode-org/icu4x/issues/4140 we decided to move forward with an approach of using AsRef for type parameters in formatters that wrap other formatters. 2.0 is a good time to bring pre-existing formatters up to spec.
I realize I made a big typo in the title of this issue: we also need to fix LocaleCanonicalizer.