mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
chore: address Rust 1.88.0 clippy lints (#8498)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -186,7 +186,7 @@ mod tests {
|
||||
.await
|
||||
.expect("aws kms encryption failed");
|
||||
|
||||
println!("{}", kms_encrypted_fingerprint);
|
||||
println!("{kms_encrypted_fingerprint}");
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
@ -208,6 +208,6 @@ mod tests {
|
||||
.await
|
||||
.expect("aws kms decryption failed");
|
||||
|
||||
println!("{}", kms_encrypted_fingerprint);
|
||||
println!("{kms_encrypted_fingerprint}");
|
||||
}
|
||||
}
|
||||
|
||||
@ -80,7 +80,7 @@ impl DynamicRoutingClientConfig {
|
||||
) -> Result<RoutingStrategy, Box<dyn std::error::Error>> {
|
||||
let (success_rate_client, contract_based_client, elimination_based_client) = match self {
|
||||
Self::Enabled { host, port, .. } => {
|
||||
let uri = format!("http://{}:{}", host, port).parse::<tonic::transport::Uri>()?;
|
||||
let uri = format!("http://{host}:{port}").parse::<tonic::transport::Uri>()?;
|
||||
logger::info!("Connection established with dynamic routing gRPC Server");
|
||||
(
|
||||
Some(SuccessRateCalculatorClient::with_origin(
|
||||
|
||||
@ -126,7 +126,7 @@ pub fn create_identity_from_certificate_and_key(
|
||||
let certificate_key = String::from_utf8(decoded_certificate_key)
|
||||
.change_context(HttpClientError::CertificateDecodeFailed)?;
|
||||
|
||||
let key_chain = format!("{}{}", certificate_key, certificate);
|
||||
let key_chain = format!("{certificate_key}{certificate}");
|
||||
reqwest::Identity::from_pem(key_chain.as_bytes())
|
||||
.change_context(HttpClientError::CertificateDecodeFailed)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user