clippy: Fix clone_on_copy warnings (#32108)

This commit is contained in:
Oluwatobi Sofela 2024-04-18 15:18:14 +01:00 committed by GitHub
parent 5393d30a8e
commit f89c53bd51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,7 +71,7 @@ impl SerializedFontTemplate {
let font_data = self.bytes_receiver.recv().ok(); let font_data = self.bytes_receiver.recv().ok();
FontTemplate { FontTemplate {
identifier: self.identifier.clone(), identifier: self.identifier.clone(),
descriptor: self.descriptor.clone(), descriptor: self.descriptor,
data: font_data.map(Arc::new), data: font_data.map(Arc::new),
is_valid: true, is_valid: true,
} }
@ -213,7 +213,7 @@ impl FontCache {
ipc::bytes_channel().expect("failed to create IPC channel"); ipc::bytes_channel().expect("failed to create IPC channel");
let serialized_font_template = SerializedFontTemplate { let serialized_font_template = SerializedFontTemplate {
identifier: font_template_info.font_template.borrow().identifier.clone(), 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, bytes_receiver,
}; };