Skip to content

Commit

Permalink
chore: address Rust 1.74 clippy lints (#2942)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chethan-rao authored Nov 21, 2023
1 parent 7f74ae9 commit c6a5a85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/router/src/configs/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4356,8 +4356,8 @@ impl Default for super::settings::ApiKeys {
#[cfg(feature = "kms")]
kms_encrypted_hash_key: KmsValue::default(),

/// Hex-encoded 32-byte long (64 characters long when hex-encoded) key used for calculating
/// hashes of API keys
// Hex-encoded 32-byte long (64 characters long when hex-encoded) key used for calculating
// hashes of API keys
#[cfg(not(feature = "kms"))]
hash_key: String::new(),

Expand Down
4 changes: 2 additions & 2 deletions crates/router/src/connector/powertranz/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for ExtendedData {
fn try_from(item: &types::PaymentsAuthorizeRouterData) -> Result<Self, Self::Error> {
Ok(Self {
three_d_secure: ThreeDSecure {
/// Merchants preferred sized of challenge window presented to cardholder.
/// 5 maps to 100% of challenge window size
// Merchants preferred sized of challenge window presented to cardholder.
// 5 maps to 100% of challenge window size
challenge_window_size: 5,
},
merchant_response_url: item.request.get_complete_authorize_url()?,
Expand Down
2 changes: 1 addition & 1 deletion crates/router/src/core/payment_methods/cards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ pub async fn add_payment_method(
.await?;
}

Ok(resp).map(services::ApplicationResponse::Json)
Ok(services::ApplicationResponse::Json(resp))
}

#[instrument(skip_all)]
Expand Down

0 comments on commit c6a5a85

Please sign in to comment.