mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove redundant .clone()
s
This commit is contained in:
parent
eeaca0b26d
commit
c44a2febe6
19 changed files with 31 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue