diff --git a/ports/geckolib/string_cache/lib.rs b/ports/geckolib/string_cache/lib.rs index 73fc82b645a..63b7ae72854 100644 --- a/ports/geckolib/string_cache/lib.rs +++ b/ports/geckolib/string_cache/lib.rs @@ -102,7 +102,8 @@ impl WeakAtom { } } - pub fn chars(&self) -> DecodeUtf16>> { + // NOTE: don't expose this, since it's slow, and easy to be misused. + fn chars(&self) -> DecodeUtf16>> { char::decode_utf16(self.as_slice().iter().cloned()) }