From f55e7778883fba0d02ee7a08a737d701403dcd78 Mon Sep 17 00:00:00 2001 From: Adavize Promise <128262752+cashall-0@users.noreply.github.com> Date: Fri, 4 Oct 2024 06:44:24 +0100 Subject: [PATCH] clippy: Fix let binding in components/fonts/font_context.rs (#33643) * clippy: Fix let binding in components/fonts/font_context.rs Signed-off-by: PS Adavize * clippy: Fix needless borrow in components\script\dom\gpucanvascontext.rs Signed-off-by: PS Adavize --------- Signed-off-by: PS Adavize --- components/fonts/font_context.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/fonts/font_context.rs b/components/fonts/font_context.rs index bd4ff42e942..8c7aafbb984 100644 --- a/components/fonts/font_context.rs +++ b/components/fonts/font_context.rs @@ -291,7 +291,7 @@ impl FontContext { } pub(crate) fn create_font_instance_key(&self, font: &Font) -> FontInstanceKey { - let result = match font.template.identifier() { + match font.template.identifier() { FontIdentifier::Local(_) | FontIdentifier::Mock(_) => { self.system_font_service_proxy.get_system_font_instance( font.template.identifier(), @@ -305,8 +305,7 @@ impl FontContext { font.descriptor.pt_size, font.webrender_font_instance_flags(), ), - }; - result + } } pub(crate) fn create_web_font_instance(