mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
chore: address Rust 1.83.0 clippy lints and enable more clippy lints (#6705)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use diesel_models::{self as store};
|
||||
use diesel_models as store;
|
||||
use error_stack::ResultExt;
|
||||
use futures::lock::Mutex;
|
||||
use hyperswitch_domain_models::{
|
||||
|
||||
@ -117,7 +117,7 @@ impl<'a> TryFrom<CacheRedact<'a>> for RedisValue {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> TryFrom<RedisValue> for CacheRedact<'a> {
|
||||
impl TryFrom<RedisValue> for CacheRedact<'_> {
|
||||
type Error = Report<errors::ValidationError>;
|
||||
|
||||
fn try_from(v: RedisValue) -> Result<Self, Self::Error> {
|
||||
|
||||
@ -57,7 +57,7 @@ pub enum PartitionKey<'a> {
|
||||
},
|
||||
}
|
||||
// PartitionKey::MerchantIdPaymentId {merchant_id, payment_id}
|
||||
impl<'a> std::fmt::Display for PartitionKey<'a> {
|
||||
impl std::fmt::Display for PartitionKey<'_> {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match *self {
|
||||
PartitionKey::MerchantIdPaymentId {
|
||||
@ -279,7 +279,7 @@ pub enum Op<'a> {
|
||||
Find,
|
||||
}
|
||||
|
||||
impl<'a> std::fmt::Display for Op<'a> {
|
||||
impl std::fmt::Display for Op<'_> {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
Op::Insert => f.write_str("insert"),
|
||||
|
||||
Reference in New Issue
Block a user