aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/font_cache_thread.rs
diff options
context:
space:
mode:
authorShotaro Yamada <sinkuu@sinkuu.xyz>2018-12-11 10:43:51 +0900
committerShotaro Yamada <sinkuu@sinkuu.xyz>2018-12-11 10:43:51 +0900
commitc44a2febe6f5f63f5b0d171c7793d00abb4f1dbd (patch)
tree74e446ae81da035445e300ae569d737ab5d38056 /components/gfx/font_cache_thread.rs
parenteeaca0b26d4bd46668fb792dccfbee0111982f6a (diff)
downloadservo-c44a2febe6f5f63f5b0d171c7793d00abb4f1dbd.tar.gz
servo-c44a2febe6f5f63f5b0d171c7793d00abb4f1dbd.zip
Remove redundant `.clone()`s
Diffstat (limited to 'components/gfx/font_cache_thread.rs')
-rw-r--r--components/gfx/font_cache_thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/gfx/font_cache_thread.rs b/components/gfx/font_cache_thread.rs
index 47939f38bd0..c932df2686b 100644
--- a/components/gfx/font_cache_thread.rs
+++ b/components/gfx/font_cache_thread.rs
@@ -405,7 +405,7 @@ impl FontCache {
match (template.bytes_if_in_memory(), template.native_font()) {
(Some(bytes), _) => txn.add_raw_font(font_key, bytes, 0),
(None, Some(native_font)) => txn.add_native_font(font_key, native_font),
- (None, None) => txn.add_raw_font(font_key, template.bytes().clone(), 0),
+ (None, None) => txn.add_raw_font(font_key, template.bytes(), 0),
}
webrender_api.update_resources(txn.resource_updates);
font_key