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 @@ -1319,13 +1319,13 @@ impl<S: MutinyStorage> MutinyWallet<S> {
1319
1319
1320
1320
if let Some ( fed_id) = maybe_federation_id {
1321
1321
log_info ! ( self . logger, "found federation_id {:?}" , fed_id) ;
1322
- let fedimint_client = federation_lock. get ( & fed_id) . ok_or ( MutinyError :: NotFound ) ?;
1322
+ let fedimint_client = federation_lock. get ( fed_id) . ok_or ( MutinyError :: NotFound ) ?;
1323
1323
log_info ! ( self . logger, "got fedimint client for federation_id {:?}" , fed_id) ;
1324
1324
let reissue = fedimint_client. reissue ( oob_notes) . await ?;
1325
1325
log_info ! ( self . logger, "successfully reissued for federation_id {:?}" , fed_id) ;
1326
1326
Ok ( reissue)
1327
1327
} else {
1328
- return Err ( MutinyError :: NotFound ) ;
1328
+ Err ( MutinyError :: NotFound )
1329
1329
}
1330
1330
}
1331
1331
You can’t perform that action at this time.
0 commit comments