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 <siyakapromise@gmail.com>

* clippy: Fix needless borrow in components\script\dom\gpucanvascontext.rs

Signed-off-by: PS Adavize <siyakapromise@gmail.com>

---------

Signed-off-by: PS Adavize <siyakapromise@gmail.com>
This commit is contained in:
Adavize Promise 2024-10-04 06:44:24 +01:00 committed by GitHub
parent 03b8034f68
commit f55e777888
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(