aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/gfx/platform/linux/font.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/gfx/platform/linux/font.rs')
-rw-r--r--src/components/gfx/platform/linux/font.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/gfx/platform/linux/font.rs b/src/components/gfx/platform/linux/font.rs
index dc2eb8bdd3b..8ae4580fcf3 100644
--- a/src/components/gfx/platform/linux/font.rs
+++ b/src/components/gfx/platform/linux/font.rs
@@ -173,7 +173,7 @@ impl FontHandleMethods for FontHandle {
FontHandleMethods::new_from_buffer(fctx, buf.clone(), style)
}
FontSourceFile(ref file) => {
- FontHandle::new_from_file(fctx, copy *file, style)
+ FontHandle::new_from_file(fctx, (*file).clone(), style)
}
}
}