From 02a0cdd6faf80b77c6b066120bc2927c963affe3 Mon Sep 17 00:00:00 2001 From: Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> Date: Wed, 20 Mar 2024 09:07:22 +0100 Subject: clippy: Fix dereferenced warnings (#31770) --- components/script/webdriver_handlers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/script/webdriver_handlers.rs') diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs index 700a15cde7e..9907272a5a0 100644 --- a/components/script/webdriver_handlers.rs +++ b/components/script/webdriver_handlers.rs @@ -461,7 +461,7 @@ pub fn handle_find_element_link_text( .find_document(pipeline) .ok_or(ErrorStatus::UnknownError) .and_then(|document| { - first_matching_link(&document.upcast::(), selector.clone(), partial) + first_matching_link(document.upcast::(), selector.clone(), partial) }), ) .unwrap(); @@ -528,7 +528,7 @@ pub fn handle_find_elements_link_text( .find_document(pipeline) .ok_or(ErrorStatus::UnknownError) .and_then(|document| { - all_matching_links(&document.upcast::(), selector.clone(), partial) + all_matching_links(document.upcast::(), selector.clone(), partial) }), ) .unwrap(); -- cgit v1.2.3