diff options
author | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2018-12-11 10:43:51 +0900 |
---|---|---|
committer | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2018-12-11 10:43:51 +0900 |
commit | c44a2febe6f5f63f5b0d171c7793d00abb4f1dbd (patch) | |
tree | 74e446ae81da035445e300ae569d737ab5d38056 /components/gfx/font_cache_thread.rs | |
parent | eeaca0b26d4bd46668fb792dccfbee0111982f6a (diff) | |
download | servo-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.rs | 2 |
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 |