chore: address Rust 1.83.0 clippy lints and enable more clippy lints (#6705)

This commit is contained in:
Sanchith Hegde
2024-12-02 20:00:44 +05:30
committed by GitHub
parent 797a0db773
commit 9a59d0a5ff
139 changed files with 147 additions and 417 deletions

View File

@ -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::{

View File

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

View File

@ -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"),