diff --git a/mutiny-core/src/federation.rs b/mutiny-core/src/federation.rs index 87d7c0e45..cb832893d 100644 --- a/mutiny-core/src/federation.rs +++ b/mutiny-core/src/federation.rs @@ -892,12 +892,12 @@ async fn process_reissue_outcome( let stream_or_outcome = mint_module .subscribe_reissue_external_notes(operation_id) .await - .map_err(|e| MutinyError::Other(e))?; + .map_err(MutinyError::Other)?; match stream_or_outcome { UpdateStreamOrOutcome::Outcome(outcome) => { log_trace!(logger, "outcome received {:?}", outcome); - return Ok(outcome); + Ok(outcome) } UpdateStreamOrOutcome::UpdateStream(mut stream) => { let timeout = DEFAULT_REISSUE_TIMEOUT * 1_000; @@ -925,7 +925,7 @@ async fn process_reissue_outcome( } }; } - return Err(MutinyError::FedimintReissueFailed); + Err(MutinyError::FedimintReissueFailed) } } } diff --git a/mutiny-core/src/lib.rs b/mutiny-core/src/lib.rs index 663d4350e..b744f712a 100644 --- a/mutiny-core/src/lib.rs +++ b/mutiny-core/src/lib.rs @@ -1319,13 +1319,13 @@ impl MutinyWallet { if let Some(fed_id) = maybe_federation_id { log_info!(self.logger, "found federation_id {:?}", fed_id); - let fedimint_client = federation_lock.get(&fed_id).ok_or(MutinyError::NotFound)?; + let fedimint_client = federation_lock.get(fed_id).ok_or(MutinyError::NotFound)?; log_info!(self.logger, "got fedimint client for federation_id {:?}", fed_id); let reissue = fedimint_client.reissue(oob_notes).await?; log_info!(self.logger, "successfully reissued for federation_id {:?}", fed_id); Ok(reissue) } else { - return Err(MutinyError::NotFound); + Err(MutinyError::NotFound) } }