aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/abstractrange.rs
diff options
context:
space:
mode:
authorEkta Siwach <137225906+ektuu@users.noreply.github.com>2024-03-27 02:55:42 +0530
committerGitHub <noreply@github.com>2024-03-26 21:25:42 +0000
commit92b557867c199472ce42a2f5b99676c485ed2ae1 (patch)
treeee8858794b4d7dfe025e1e61c5cf84a0207b63f5 /components/script/dom/abstractrange.rs
parent8dece05980a4ec46b06505e511f8b158d4c0fe3b (diff)
downloadservo-92b557867c199472ce42a2f5b99676c485ed2ae1.tar.gz
servo-92b557867c199472ce42a2f5b99676c485ed2ae1.zip
clippy: fixed some warnings in components/script (#31888)
Diffstat (limited to 'components/script/dom/abstractrange.rs')
-rw-r--r--components/script/dom/abstractrange.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/abstractrange.rs b/components/script/dom/abstractrange.rs
index a39b67b1807..f4f86566f41 100644
--- a/components/script/dom/abstractrange.rs
+++ b/components/script/dom/abstractrange.rs
@@ -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));
}