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(
892892 let stream_or_outcome = mint_module
893893 . subscribe_reissue_external_notes ( operation_id)
894894 . await
895- . map_err ( |e| MutinyError :: Other ( e ) ) ?;
895+ . map_err ( MutinyError :: Other ) ?;
896896
897897 match stream_or_outcome {
898898 UpdateStreamOrOutcome :: Outcome ( outcome) => {
899899 log_trace ! ( logger, "outcome received {:?}" , outcome) ;
900- return Ok ( outcome) ;
900+ Ok ( outcome)
901901 }
902902 UpdateStreamOrOutcome :: UpdateStream ( mut stream) => {
903903 let timeout = DEFAULT_REISSUE_TIMEOUT * 1_000 ;
@@ -925,7 +925,7 @@ async fn process_reissue_outcome(
925925 }
926926 } ;
927927 }
928- return Err ( MutinyError :: FedimintReissueFailed ) ;
928+ Err ( MutinyError :: FedimintReissueFailed )
929929 }
930930 }
931931}
Original file line number Diff line number Diff line change @@ -1319,13 +1319,13 @@ impl<S: MutinyStorage> MutinyWallet<S> {
13191319
13201320 if let Some ( fed_id) = maybe_federation_id {
13211321 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 ) ?;
13231323 log_info ! ( self . logger, "got fedimint client for federation_id {:?}" , fed_id) ;
13241324 let reissue = fedimint_client. reissue ( oob_notes) . await ?;
13251325 log_info ! ( self . logger, "successfully reissued for federation_id {:?}" , fed_id) ;
13261326 Ok ( reissue)
13271327 } else {
1328- return Err ( MutinyError :: NotFound ) ;
1328+ Err ( MutinyError :: NotFound )
13291329 }
13301330 }
13311331
You can’t perform that action at this time.
0 commit comments