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 @@ -1363,13 +1363,13 @@ impl<S: MutinyStorage> MutinyWallet<S> {
13631363
13641364 if let Some ( fed_id) = maybe_federation_id {
13651365 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 ) ?;
13671367 log_info ! ( self . logger, "got fedimint client for federation_id {:?}" , fed_id) ;
13681368 let reissue = fedimint_client. reissue ( oob_notes) . await ?;
13691369 log_info ! ( self . logger, "successfully reissued for federation_id {:?}" , fed_id) ;
13701370 Ok ( reissue)
13711371 } else {
1372- return Err ( MutinyError :: NotFound ) ;
1372+ Err ( MutinyError :: NotFound )
13731373 }
13741374 }
13751375
You can’t perform that action at this time.
0 commit comments