aboutsummaryrefslogtreecommitdiff
path: root/font/src/darwin/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'font/src/darwin/mod.rs')
-rw-r--r--font/src/darwin/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs
index 2f9d5fe0..bbdb5662 100644
--- a/font/src/darwin/mod.rs
+++ b/font/src/darwin/mod.rs
@@ -68,7 +68,7 @@ impl Descriptor {
font_name: desc.font_name(),
style_name: desc.style_name(),
display_name: desc.display_name(),
- font_path: desc.font_path().unwrap_or_else(||{"".to_owned()}),
+ font_path: desc.font_path().unwrap_or_else(String::new),
ct_descriptor: desc,
}
}