mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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:
parent
03b8034f68
commit
f55e777888
1 changed files with 2 additions and 3 deletions
|
@ -291,7 +291,7 @@ impl FontContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn create_font_instance_key(&self, font: &Font) -> FontInstanceKey {
|
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(_) => {
|
FontIdentifier::Local(_) | FontIdentifier::Mock(_) => {
|
||||||
self.system_font_service_proxy.get_system_font_instance(
|
self.system_font_service_proxy.get_system_font_instance(
|
||||||
font.template.identifier(),
|
font.template.identifier(),
|
||||||
|
@ -305,8 +305,7 @@ impl FontContext {
|
||||||
font.descriptor.pt_size,
|
font.descriptor.pt_size,
|
||||||
font.webrender_font_instance_flags(),
|
font.webrender_font_instance_flags(),
|
||||||
),
|
),
|
||||||
};
|
}
|
||||||
result
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn create_web_font_instance(
|
pub(crate) fn create_web_font_instance(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue