Skip to content

Commit

Permalink
stylo: privatize Atom::chars()
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Aug 16, 2016
1 parent babb2b7 commit 24168f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ports/geckolib/string_cache/lib.rs
Expand Up @@ -102,7 +102,8 @@ impl WeakAtom {
}
}

pub fn chars(&self) -> DecodeUtf16<Cloned<slice::Iter<u16>>> {
// NOTE: don't expose this, since it's slow, and easy to be misused.
fn chars(&self) -> DecodeUtf16<Cloned<slice::Iter<u16>>> {
char::decode_utf16(self.as_slice().iter().cloned())
}

Expand Down

0 comments on commit 24168f8

Please sign in to comment.