From 6ad7f3cd910582847bcf203e6b5e2d7a0542eb36 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 9 May 2016 17:48:42 +0200 Subject: [PATCH] Remove unnecessary bounds on arc_ptr_eq. --- components/util/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/util/lib.rs b/components/util/lib.rs index b9c349fee6a..53391a50f84 100644 --- a/components/util/lib.rs +++ b/components/util/lib.rs @@ -80,7 +80,7 @@ pub fn breakpoint() { // Workaround for lack of `ptr_eq` on Arcs... #[inline] -pub fn arc_ptr_eq(a: &Arc, b: &Arc) -> bool { +pub fn arc_ptr_eq(a: &Arc, b: &Arc) -> bool { let a: &T = &**a; let b: &T = &**b; (a as *const T) == (b as *const T)