This repository was archived by the owner on Feb 3, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -892,12 +892,12 @@ async fn process_reissue_outcome(
892
892
let stream_or_outcome = mint_module
893
893
. subscribe_reissue_external_notes ( operation_id)
894
894
. await
895
- . map_err ( |e| MutinyError :: Other ( e ) ) ?;
895
+ . map_err ( MutinyError :: Other ) ?;
896
896
897
897
match stream_or_outcome {
898
898
UpdateStreamOrOutcome :: Outcome ( outcome) => {
899
899
log_trace ! ( logger, "outcome received {:?}" , outcome) ;
900
- return Ok ( outcome) ;
900
+ Ok ( outcome)
901
901
}
902
902
UpdateStreamOrOutcome :: UpdateStream ( mut stream) => {
903
903
let timeout = DEFAULT_REISSUE_TIMEOUT * 1_000 ;
@@ -925,7 +925,7 @@ async fn process_reissue_outcome(
925
925
}
926
926
} ;
927
927
}
928
- return Err ( MutinyError :: FedimintReissueFailed ) ;
928
+ Err ( MutinyError :: FedimintReissueFailed )
929
929
}
930
930
}
931
931
}
Original file line number Diff line number Diff line change @@ -1363,13 +1363,13 @@ impl<S: MutinyStorage> MutinyWallet<S> {
1363
1363
1364
1364
if let Some ( fed_id) = maybe_federation_id {
1365
1365
log_info ! ( self . logger, "found federation_id {:?}" , fed_id) ;
1366
- let fedimint_client = federation_lock. get ( & fed_id) . ok_or ( MutinyError :: NotFound ) ?;
1366
+ let fedimint_client = federation_lock. get ( fed_id) . ok_or ( MutinyError :: NotFound ) ?;
1367
1367
log_info ! ( self . logger, "got fedimint client for federation_id {:?}" , fed_id) ;
1368
1368
let reissue = fedimint_client. reissue ( oob_notes) . await ?;
1369
1369
log_info ! ( self . logger, "successfully reissued for federation_id {:?}" , fed_id) ;
1370
1370
Ok ( reissue)
1371
1371
} else {
1372
- return Err ( MutinyError :: NotFound ) ;
1372
+ Err ( MutinyError :: NotFound )
1373
1373
}
1374
1374
}
1375
1375
You can’t perform that action at this time.
0 commit comments