mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove unnecessary bounds on arc_ptr_eq.
This commit is contained in:
parent
aa8c835d3b
commit
6ad7f3cd91
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue