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:
Chethan Rao
2025-07-02 12:13:07 +05:30
committed by GitHub
parent ad29631c53
commit 20b52f11c3
150 changed files with 464 additions and 647 deletions

View File

@ -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}");
}
}

View File

@ -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(

View File

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