mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix dereferenced warnings (#31770)
This commit is contained in:
parent
0cf2caba06
commit
02a0cdd6fa
43 changed files with 92 additions and 96 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue