@@ -415,11 +415,11 @@ where
415
415
P :: Target : PartialEq < Q :: Target > ,
416
416
{
417
417
fn eq ( & self , other : & Pin < Q > ) -> bool {
418
- * * self == * * other
418
+ P :: Target :: eq ( self , other)
419
419
}
420
420
421
421
fn ne ( & self , other : & Pin < Q > ) -> bool {
422
- * * self != * * other
422
+ P :: Target :: ne ( self , other)
423
423
}
424
424
}
425
425
@@ -432,37 +432,37 @@ where
432
432
P :: Target : PartialOrd < Q :: Target > ,
433
433
{
434
434
fn partial_cmp ( & self , other : & Pin < Q > ) -> Option < cmp:: Ordering > {
435
- ( * * self ) . partial_cmp ( other)
435
+ P :: Target :: partial_cmp ( self , other)
436
436
}
437
437
438
438
fn lt ( & self , other : & Pin < Q > ) -> bool {
439
- * * self < * * other
439
+ P :: Target :: lt ( self , other)
440
440
}
441
441
442
442
fn le ( & self , other : & Pin < Q > ) -> bool {
443
- * * self <= * * other
443
+ P :: Target :: le ( self , other)
444
444
}
445
445
446
446
fn gt ( & self , other : & Pin < Q > ) -> bool {
447
- * * self > * * other
447
+ P :: Target :: gt ( self , other)
448
448
}
449
449
450
450
fn ge ( & self , other : & Pin < Q > ) -> bool {
451
- * * self >= * * other
451
+ P :: Target :: ge ( self , other)
452
452
}
453
453
}
454
454
455
455
#[ stable( feature = "pin_trait_impls" , since = "1.41.0" ) ]
456
456
impl < P : Deref < Target : Ord > > Ord for Pin < P > {
457
457
fn cmp ( & self , other : & Self ) -> cmp:: Ordering {
458
- ( * * self ) . cmp ( other)
458
+ P :: Target :: cmp ( self , other)
459
459
}
460
460
}
461
461
462
462
#[ stable( feature = "pin_trait_impls" , since = "1.41.0" ) ]
463
463
impl < P : Deref < Target : Hash > > Hash for Pin < P > {
464
464
fn hash < H : Hasher > ( & self , state : & mut H ) {
465
- ( * * self ) . hash ( state) ;
465
+ P :: Target :: hash ( self , state) ;
466
466
}
467
467
}
468
468
0 commit comments