mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
clippy: fixed some warnings in components/script (#31888)
This commit is contained in:
parent
8dece05980
commit
92b557867c
11 changed files with 39 additions and 40 deletions
|
@ -142,7 +142,7 @@ impl PartialEq for BoundaryPoint {
|
|||
|
||||
/// <https://dom.spec.whatwg.org/#concept-range-bp-position>
|
||||
pub fn bp_position(a_node: &Node, a_offset: u32, b_node: &Node, b_offset: u32) -> Option<Ordering> {
|
||||
if a_node as *const Node == b_node as *const Node {
|
||||
if std::ptr::eq(a_node, b_node) {
|
||||
// Step 1.
|
||||
return Some(a_offset.cmp(&b_offset));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue