File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ impl From<super::SenderTypeState> for SenderTypeState {
4646 fn from ( value : super :: SenderTypeState ) -> Self {
4747 use payjoin:: send:: v2:: SenderTypeState :: * ;
4848 match value. 0 {
49- Uninitialized ( ) => Self :: Uninitialized ,
49+ Uninitialized => Self :: Uninitialized ,
5050 WithReplyKey ( inner) =>
5151 Self :: WithReplyKey { inner : Arc :: new ( super :: WithReplyKey :: from ( inner) . into ( ) ) } ,
5252 V2GetContext ( inner) =>
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ impl<State: SenderState> core::ops::DerefMut for Sender<State> {
163163
164164#[ derive( Debug , Clone , PartialEq , Eq ) ]
165165pub enum SenderTypeState {
166- Uninitialized ( ) ,
166+ Uninitialized ,
167167 WithReplyKey ( Sender < WithReplyKey > ) ,
168168 V2GetContext ( Sender < V2GetContext > ) ,
169169 ProposalReceived ( Psbt ) ,
@@ -174,7 +174,7 @@ impl SenderTypeState {
174174 fn process_event ( self , event : SessionEvent ) -> Result < SenderTypeState , ReplayError > {
175175 match ( self , event) {
176176 (
177- SenderTypeState :: Uninitialized ( ) ,
177+ SenderTypeState :: Uninitialized ,
178178 SessionEvent :: CreatedReplyKey ( sender_with_reply_key) ,
179179 ) => Ok ( SenderTypeState :: WithReplyKey ( Sender { state : sender_with_reply_key } ) ) ,
180180 ( SenderTypeState :: WithReplyKey ( state) , SessionEvent :: V2GetContext ( v2_get_context) ) =>
Original file line number Diff line number Diff line change 4343 . load ( )
4444 . map_err ( |e| InternalReplayError :: PersistenceFailure ( Box :: new ( e) . into ( ) ) ) ?;
4545
46- let mut sender = SenderTypeState :: Uninitialized ( ) ;
46+ let mut sender = SenderTypeState :: Uninitialized ;
4747 let mut history = SessionHistory :: default ( ) ;
4848 for log in logs {
4949 history. events . push ( log. clone ( ) . into ( ) ) ;
You can’t perform that action at this time.
0 commit comments