Remove unnecessary bounds on arc_ptr_eq.

This commit is contained in:
Ms2ger 2016-05-09 17:48:42 +02:00 committed by Bobby Holley
parent aa8c835d3b
commit 6ad7f3cd91

View file

@ -80,7 +80,7 @@ pub fn breakpoint() {
// Workaround for lack of `ptr_eq` on Arcs...
#[inline]
pub fn arc_ptr_eq<T: 'static + Send + Sync>(a: &Arc<T>, b: &Arc<T>) -> bool {
pub fn arc_ptr_eq<T: 'static>(a: &Arc<T>, b: &Arc<T>) -> bool {
let a: &T = &**a;
let b: &T = &**b;
(a as *const T) == (b as *const T)