@@ -415,11 +415,11 @@ where
415415 P :: Target : PartialEq < Q :: Target > ,
416416{
417417 fn eq ( & self , other : & Pin < Q > ) -> bool {
418- * * self == * * other
418+ P :: Target :: eq ( self , other)
419419 }
420420
421421 fn ne ( & self , other : & Pin < Q > ) -> bool {
422- * * self != * * other
422+ P :: Target :: ne ( self , other)
423423 }
424424}
425425
@@ -432,37 +432,37 @@ where
432432 P :: Target : PartialOrd < Q :: Target > ,
433433{
434434 fn partial_cmp ( & self , other : & Pin < Q > ) -> Option < cmp:: Ordering > {
435- ( * * self ) . partial_cmp ( other)
435+ P :: Target :: partial_cmp ( self , other)
436436 }
437437
438438 fn lt ( & self , other : & Pin < Q > ) -> bool {
439- * * self < * * other
439+ P :: Target :: lt ( self , other)
440440 }
441441
442442 fn le ( & self , other : & Pin < Q > ) -> bool {
443- * * self <= * * other
443+ P :: Target :: le ( self , other)
444444 }
445445
446446 fn gt ( & self , other : & Pin < Q > ) -> bool {
447- * * self > * * other
447+ P :: Target :: gt ( self , other)
448448 }
449449
450450 fn ge ( & self , other : & Pin < Q > ) -> bool {
451- * * self >= * * other
451+ P :: Target :: ge ( self , other)
452452 }
453453}
454454
455455#[ stable( feature = "pin_trait_impls" , since = "1.41.0" ) ]
456456impl < P : Deref < Target : Ord > > Ord for Pin < P > {
457457 fn cmp ( & self , other : & Self ) -> cmp:: Ordering {
458- ( * * self ) . cmp ( other)
458+ P :: Target :: cmp ( self , other)
459459 }
460460}
461461
462462#[ stable( feature = "pin_trait_impls" , since = "1.41.0" ) ]
463463impl < P : Deref < Target : Hash > > Hash for Pin < P > {
464464 fn hash < H : Hasher > ( & self , state : & mut H ) {
465- ( * * self ) . hash ( state) ;
465+ P :: Target :: hash ( self , state) ;
466466 }
467467}
468468
0 commit comments