From 55876522a2f4f93ea9ee0e1b4fec9d81621ae0cf Mon Sep 17 00:00:00 2001 From: Harlan Lieberman-Berg Date: Wed, 1 Mar 2017 21:48:37 -0500 Subject: [PATCH] font::fc: Remove unneeded clone --- font/src/ft/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/font/src/ft/mod.rs b/font/src/ft/mod.rs index a199f1c..82f0677 100644 --- a/font/src/ft/mod.rs +++ b/font/src/ft/mod.rs @@ -247,7 +247,7 @@ impl FreeTypeRasterizer { None => { debug!("Miss for font {:?}", path); - let face = self.library.new_face(path.clone(), index)?; + let face = self.library.new_face(&path, index)?; let key = FontKey::next(); self.faces.insert(key, face); self.keys.insert(path, key);