From 24168f87eba1b11dd87e5ddb34769d1e099f6000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 12 Aug 2016 17:28:50 -0700 Subject: [PATCH] stylo: privatize Atom::chars() --- ports/geckolib/string_cache/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) }