diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-03-20 09:07:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 08:07:22 +0000 |
commit | 02a0cdd6faf80b77c6b066120bc2927c963affe3 (patch) | |
tree | abb409671c554c5c4d9678788388d51f6341688d /components/script/webdriver_handlers.rs | |
parent | 0cf2caba06a78fe3695c46b468422e975f0bd187 (diff) | |
download | servo-02a0cdd6faf80b77c6b066120bc2927c963affe3.tar.gz servo-02a0cdd6faf80b77c6b066120bc2927c963affe3.zip |
clippy: Fix dereferenced warnings (#31770)
Diffstat (limited to 'components/script/webdriver_handlers.rs')
-rw-r--r-- | components/script/webdriver_handlers.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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::<Node>(), selector.clone(), partial) + first_matching_link(document.upcast::<Node>(), 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::<Node>(), selector.clone(), partial) + all_matching_links(document.upcast::<Node>(), selector.clone(), partial) }), ) .unwrap(); |