mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Use chars().count() rather than char_len().
The latter is obsolete in current Rust.
This commit is contained in:
parent
faefb27f3e
commit
024571dfa3
5 changed files with 9 additions and 9 deletions
|
@ -157,7 +157,7 @@ impl Font {
|
|||
Some(glyphs) => return (*glyphs).clone(),
|
||||
}
|
||||
|
||||
let mut glyphs = GlyphStore::new(text.char_len() as int,
|
||||
let mut glyphs = GlyphStore::new(text.chars().count() as int,
|
||||
options.flags.contains(IS_WHITESPACE_SHAPING_FLAG));
|
||||
shaper.as_ref().unwrap().shape_text(text, options, &mut glyphs);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue