@@ -444,7 +444,7 @@ impl<P: Deref> Pin<P> {
444444 /// ruled out by the contract of `Pin::new_unchecked`.
445445 #[ stable( feature = "pin" , since = "1.33.0" ) ]
446446 #[ inline( always) ]
447- pub fn as_ref ( self : & Pin < P > ) -> Pin < & P :: Target > {
447+ pub fn as_ref ( & self ) -> Pin < & P :: Target > {
448448 unsafe { Pin :: new_unchecked ( & * self . pointer ) }
449449 }
450450
@@ -481,7 +481,7 @@ impl<P: DerefMut> Pin<P> {
481481 /// ruled out by the contract of `Pin::new_unchecked`.
482482 #[ stable( feature = "pin" , since = "1.33.0" ) ]
483483 #[ inline( always) ]
484- pub fn as_mut ( self : & mut Pin < P > ) -> Pin < & mut P :: Target > {
484+ pub fn as_mut ( & mut self ) -> Pin < & mut P :: Target > {
485485 unsafe { Pin :: new_unchecked ( & mut * self . pointer ) }
486486 }
487487
@@ -491,7 +491,7 @@ impl<P: DerefMut> Pin<P> {
491491 /// run before being overwritten, so no pinning guarantee is violated.
492492 #[ stable( feature = "pin" , since = "1.33.0" ) ]
493493 #[ inline( always) ]
494- pub fn set ( self : & mut Pin < P > , value : P :: Target )
494+ pub fn set ( & mut self , value : P :: Target )
495495 where
496496 P :: Target : Sized ,
497497 {
@@ -516,7 +516,7 @@ impl<'a, T: ?Sized> Pin<&'a T> {
516516 ///
517517 /// [`pin` module]: ../../std/pin/index.html#projections-and-structural-pinning
518518 #[ stable( feature = "pin" , since = "1.33.0" ) ]
519- pub unsafe fn map_unchecked < U , F > ( self : Pin < & ' a T > , func : F ) -> Pin < & ' a U > where
519+ pub unsafe fn map_unchecked < U , F > ( self , func : F ) -> Pin < & ' a U > where
520520 F : FnOnce ( & T ) -> & U ,
521521 {
522522 let pointer = & * self . pointer ;
@@ -543,7 +543,7 @@ impl<'a, T: ?Sized> Pin<&'a T> {
543543 /// ["pinning projections"]: ../../std/pin/index.html#projections-and-structural-pinning
544544 #[ stable( feature = "pin" , since = "1.33.0" ) ]
545545 #[ inline( always) ]
546- pub fn get_ref ( self : Pin < & ' a T > ) -> & ' a T {
546+ pub fn get_ref ( self ) -> & ' a T {
547547 self . pointer
548548 }
549549}
@@ -552,7 +552,7 @@ impl<'a, T: ?Sized> Pin<&'a mut T> {
552552 /// Converts this `Pin<&mut T>` into a `Pin<&T>` with the same lifetime.
553553 #[ stable( feature = "pin" , since = "1.33.0" ) ]
554554 #[ inline( always) ]
555- pub fn into_ref ( self : Pin < & ' a mut T > ) -> Pin < & ' a T > {
555+ pub fn into_ref ( self ) -> Pin < & ' a T > {
556556 Pin { pointer : self . pointer }
557557 }
558558
@@ -567,7 +567,7 @@ impl<'a, T: ?Sized> Pin<&'a mut T> {
567567 /// with the same lifetime as the original `Pin`.
568568 #[ stable( feature = "pin" , since = "1.33.0" ) ]
569569 #[ inline( always) ]
570- pub fn get_mut ( self : Pin < & ' a mut T > ) -> & ' a mut T
570+ pub fn get_mut ( self ) -> & ' a mut T
571571 where T : Unpin ,
572572 {
573573 self . pointer
@@ -585,7 +585,7 @@ impl<'a, T: ?Sized> Pin<&'a mut T> {
585585 /// instead.
586586 #[ stable( feature = "pin" , since = "1.33.0" ) ]
587587 #[ inline( always) ]
588- pub unsafe fn get_unchecked_mut ( self : Pin < & ' a mut T > ) -> & ' a mut T {
588+ pub unsafe fn get_unchecked_mut ( self ) -> & ' a mut T {
589589 self . pointer
590590 }
591591
@@ -605,7 +605,7 @@ impl<'a, T: ?Sized> Pin<&'a mut T> {
605605 ///
606606 /// [`pin` module]: ../../std/pin/index.html#projections-and-structural-pinning
607607 #[ stable( feature = "pin" , since = "1.33.0" ) ]
608- pub unsafe fn map_unchecked_mut < U , F > ( self : Pin < & ' a mut T > , func : F ) -> Pin < & ' a mut U > where
608+ pub unsafe fn map_unchecked_mut < U , F > ( self , func : F ) -> Pin < & ' a mut U > where
609609 F : FnOnce ( & mut T ) -> & mut U ,
610610 {
611611 let pointer = Pin :: get_unchecked_mut ( self ) ;
0 commit comments