Skip to content

Commit

Permalink
fix: clippy lint (1.47.0)
Browse files Browse the repository at this point in the history
Signed-off-by: Niklas Long <niklas@equilibrium.co>
  • Loading branch information
niklaslong committed Oct 9, 2020
1 parent 252eda9 commit 9ddd1d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/interledger-stream/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ impl StreamPayment {

// Apply F99, T00, T01 to fail-fast threshold.
// Other final/relative errors should immediately fail; T02-T99 may be resolved with time.
let apply_to_fail_fast = match reject.code() {
let apply_to_fail_fast = matches!(
reject.code(),
IlpErrorCode::T00_INTERNAL_ERROR
| IlpErrorCode::T01_PEER_UNREACHABLE
| IlpErrorCode::F99_APPLICATION_ERROR => true,
_ => false,
};
| IlpErrorCode::T01_PEER_UNREACHABLE
| IlpErrorCode::F99_APPLICATION_ERROR
);
if apply_to_fail_fast {
self.fail_fast_rejects += 1;
}
Expand Down

0 comments on commit 9ddd1d3

Please sign in to comment.