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

@ -113,7 +113,7 @@ impl std::fmt::Display for PartitionKey<'_> {
)),
#[cfg(feature = "v2")]
PartitionKey::GlobalId { id } => f.write_str(&format!("global_cust_{id}",)),
PartitionKey::GlobalId { id } => f.write_str(&format!("global_cust_{id}")),
#[cfg(feature = "v2")]
PartitionKey::GlobalPaymentId { id } => {
f.write_str(&format!("global_payment_{}", id.get_string_repr()))
@ -177,7 +177,7 @@ where
{
let redis_conn = store.get_redis_conn()?;
let key = format!("{}", partition_key);
let key = format!("{partition_key}");
let type_name = std::any::type_name::<T>();
let operation = op.to_string();
@ -293,7 +293,7 @@ impl std::fmt::Display for Op<'_> {
Op::Insert => f.write_str("insert"),
Op::Find => f.write_str("find"),
Op::Update(p_key, _, updated_by) => {
f.write_str(&format!("update_{} for updated_by_{:?}", p_key, updated_by))
f.write_str(&format!("update_{p_key} for updated_by_{updated_by:?}"))
}
}
}