diff options
Diffstat (limited to 'font/src/darwin/mod.rs')
-rw-r--r-- | font/src/darwin/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs index 2914b0b5..b9266a84 100644 --- a/font/src/darwin/mod.rs +++ b/font/src/darwin/mod.rs @@ -338,8 +338,7 @@ impl Descriptor { let fallbacks = if load_fallbacks { descriptors_for_family("Menlo") .into_iter() - .filter(|d| d.font_name == "Menlo-Regular") - .nth(0) + .find(|d| d.font_name == "Menlo-Regular") .map(|descriptor| { let menlo = ct_new_from_descriptor(&descriptor.ct_descriptor, size); |