From 919a4774dd1a77318bb0cb918c6c53beef1413b9 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Tue, 31 May 2016 14:57:47 +0200 Subject: [PATCH] Avoid a literal "&Root" in its PartialEq impl --- components/script/dom/bindings/js.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index f276cd259f0..f8ddb80e44b 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -601,7 +601,7 @@ impl Deref for Root { } impl PartialEq for Root { - fn eq(&self, other: &Root) -> bool { + fn eq(&self, other: &Self) -> bool { self.ptr == other.ptr } }