mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
clippy: Fix clone_on_copy warnings (#32108)
This commit is contained in:
parent
5393d30a8e
commit
f89c53bd51
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ impl SerializedFontTemplate {
|
|||
let font_data = self.bytes_receiver.recv().ok();
|
||||
FontTemplate {
|
||||
identifier: self.identifier.clone(),
|
||||
descriptor: self.descriptor.clone(),
|
||||
descriptor: self.descriptor,
|
||||
data: font_data.map(Arc::new),
|
||||
is_valid: true,
|
||||
}
|
||||
|
@ -213,7 +213,7 @@ impl FontCache {
|
|||
ipc::bytes_channel().expect("failed to create IPC channel");
|
||||
let serialized_font_template = SerializedFontTemplate {
|
||||
identifier: font_template_info.font_template.borrow().identifier.clone(),
|
||||
descriptor: font_template_info.font_template.borrow().descriptor.clone(),
|
||||
descriptor: font_template_info.font_template.borrow().descriptor,
|
||||
bytes_receiver,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue