aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/font_cache_thread.rs
diff options
context:
space:
mode:
authorOluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com>2024-04-18 15:18:14 +0100
committerGitHub <noreply@github.com>2024-04-18 14:18:14 +0000
commitf89c53bd51ab3dbbdaa32f23c63afc506eefad14 (patch)
tree446fd2282b10747bd38f7323d821c90bf77c4d3a /components/gfx/font_cache_thread.rs
parent5393d30a8eb92f0a62ca37bb1486927fdf3604ff (diff)
downloadservo-f89c53bd51ab3dbbdaa32f23c63afc506eefad14.tar.gz
servo-f89c53bd51ab3dbbdaa32f23c63afc506eefad14.zip
clippy: Fix clone_on_copy warnings (#32108)
Diffstat (limited to 'components/gfx/font_cache_thread.rs')
-rw-r--r--components/gfx/font_cache_thread.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/gfx/font_cache_thread.rs b/components/gfx/font_cache_thread.rs
index d56cf2f115d..82aed651d95 100644
--- a/components/gfx/font_cache_thread.rs
+++ b/components/gfx/font_cache_thread.rs
@@ -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,
};