mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
parent
f5e97ef1b5
commit
9c11781880
20 changed files with 25 additions and 29 deletions
|
@ -190,7 +190,7 @@ impl FontCache {
|
|||
debug!("FontList: Found font family with name={}", &**family_name);
|
||||
let s = self.local_families.get_mut(family_name).unwrap();
|
||||
|
||||
if s.templates.len() == 0 {
|
||||
if s.templates.is_empty() {
|
||||
get_variations_for_family(family_name, |path| {
|
||||
s.add_template(Atom::from_slice(&path), None);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue