@@ -950,29 +950,29 @@ unsafe impl<T, F: Future<Output = T> + 'static> UnsafeFutureObj<T> for PinBox<F>
950
950
}
951
951
952
952
#[ unstable( feature = "futures_api" , issue = "50547" ) ]
953
- impl < T , F : Future < Output = T > + Send + ' static > Into < FutureObj < T > > for PinBox < F > {
954
- fn into ( self ) -> FutureObj < T > {
955
- FutureObj :: new ( self )
953
+ impl < F : Future < Output = ( ) > + Send + ' static > From < PinBox < F > > for FutureObj < ( ) > {
954
+ fn from ( boxed : PinBox < F > ) -> Self {
955
+ FutureObj :: new ( boxed )
956
956
}
957
957
}
958
958
959
959
#[ unstable( feature = "futures_api" , issue = "50547" ) ]
960
- impl < T , F : Future < Output = T > + Send + ' static > Into < FutureObj < T > > for Box < F > {
961
- fn into ( self ) -> FutureObj < T > {
962
- FutureObj :: new ( PinBox :: from ( self ) )
960
+ impl < F : Future < Output = ( ) > + Send + ' static > From < Box < F > > for FutureObj < ( ) > {
961
+ fn from ( boxed : Box < F > ) -> Self {
962
+ FutureObj :: new ( PinBox :: from ( boxed ) )
963
963
}
964
964
}
965
965
966
966
#[ unstable( feature = "futures_api" , issue = "50547" ) ]
967
- impl < T , F : Future < Output = T > + ' static > Into < LocalFutureObj < T > > for PinBox < F > {
968
- fn into ( self ) -> LocalFutureObj < T > {
969
- LocalFutureObj :: new ( self )
967
+ impl < F : Future < Output = ( ) > + ' static > From < PinBox < F > > for LocalFutureObj < ( ) > {
968
+ fn from ( boxed : PinBox < F > ) -> Self {
969
+ LocalFutureObj :: new ( boxed )
970
970
}
971
971
}
972
972
973
973
#[ unstable( feature = "futures_api" , issue = "50547" ) ]
974
- impl < T , F : Future < Output = T > + ' static > Into < LocalFutureObj < T > > for Box < F > {
975
- fn into ( self ) -> LocalFutureObj < T > {
976
- LocalFutureObj :: new ( PinBox :: from ( self ) )
974
+ impl < F : Future < Output = ( ) > + ' static > From < Box < F > > for LocalFutureObj < ( ) > {
975
+ fn from ( boxed : Box < F > ) -> Self {
976
+ LocalFutureObj :: new ( PinBox :: from ( boxed ) )
977
977
}
978
978
}
0 commit comments