mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 20:23:43 +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:
@ -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:?}"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user