From 63a40df5203178bbea1ff1a6988e6d30b6f992f4 Mon Sep 17 00:00:00 2001 From: Matthias Krüger Date: Tue, 18 Sep 2018 01:34:56 +0200 Subject: Fix style issues --- font/src/darwin/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'font/src/darwin/mod.rs') 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, } } -- cgit v1.2.3-54-g00ecf