Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
oleonardolima committed Feb 22, 2024
1 parent ec98778 commit ed128ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions mutiny-core/src/federation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -925,7 +925,7 @@ async fn process_reissue_outcome(
}
};
}
return Err(MutinyError::FedimintReissueFailed);
Err(MutinyError::FedimintReissueFailed)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions mutiny-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1319,13 +1319,13 @@ impl<S: MutinyStorage> MutinyWallet<S> {

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)
}
}

Expand Down

0 comments on commit ed128ab

Please sign in to comment.