File tree Expand file tree Collapse file tree 3 files changed +7
-35
lines changed Expand file tree Collapse file tree 3 files changed +7
-35
lines changed Original file line number Diff line number Diff line change @@ -301,35 +301,6 @@ impl Parse for Rule {
301
301
}
302
302
}
303
303
304
- #[ derive( Clone ) ]
305
- enum Scope {
306
- Crate ,
307
- Extern ,
308
- }
309
-
310
- impl Parse for Scope {
311
- fn parse ( input : syn:: parse:: ParseStream < ' _ > ) -> syn:: Result < Self > {
312
- let lookahead = input. lookahead1 ( ) ;
313
- if lookahead. peek ( Token ! [ crate ] ) {
314
- input. parse :: < Token ! [ crate ] > ( ) ?;
315
- Ok ( Self :: Crate )
316
- } else if lookahead. peek ( Token ! [ extern] ) {
317
- input. parse :: < Token ! [ extern] > ( ) ?;
318
- Ok ( Self :: Extern )
319
- } else {
320
- Err ( lookahead. error ( ) )
321
- }
322
- }
323
- }
324
-
325
- impl Display for Scope {
326
- fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
327
- match self {
328
- Self :: Crate => write ! ( f, "crate" ) ,
329
- Self :: Extern => write ! ( f, "euclid" ) ,
330
- }
331
- }
332
- }
333
304
#[ derive( Clone ) ]
334
305
struct Program {
335
306
rules : Vec < Rc < Rule > > ,
Original file line number Diff line number Diff line change @@ -784,10 +784,11 @@ where
784
784
payment_data = match connector_details {
785
785
ConnectorCallType :: PreDetermined ( ref connector) => {
786
786
#[ cfg( all( feature = "dynamic_routing" , feature = "v1" ) ) ]
787
- let routable_connectors =
788
- convert_connector_data_to_routable_connectors ( & [ connector. clone ( ) ] )
789
- . map_err ( |e| logger:: error!( routable_connector_error=?e) )
790
- . unwrap_or_default ( ) ;
787
+ let routable_connectors = convert_connector_data_to_routable_connectors (
788
+ std:: slice:: from_ref ( connector) ,
789
+ )
790
+ . map_err ( |e| logger:: error!( routable_connector_error=?e) )
791
+ . unwrap_or_default ( ) ;
791
792
let schedule_time = if should_add_task_to_process_tracker {
792
793
payment_sync:: get_sync_process_schedule_time (
793
794
& * state. store ,
Original file line number Diff line number Diff line change @@ -400,12 +400,12 @@ pub async fn connect_account(
400
400
logger:: info!( ?welcome_email_result) ;
401
401
}
402
402
403
- return Ok ( ApplicationResponse :: Json (
403
+ Ok ( ApplicationResponse :: Json (
404
404
user_api:: ConnectAccountResponse {
405
405
is_email_sent : magic_link_result. is_ok ( ) ,
406
406
user_id : user_from_db. get_user_id ( ) . to_string ( ) ,
407
407
} ,
408
- ) ) ;
408
+ ) )
409
409
} else {
410
410
Err ( find_user
411
411
. err ( )
You can’t perform that action at this time.
0 commit comments