mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
chore: address Rust 1.90.0 clippy lints (#9511)
This commit is contained in:
@ -153,7 +153,7 @@ pub trait StorageInterface:
|
||||
{
|
||||
fn get_scheduler_db(&self) -> Box<dyn scheduler::SchedulerInterface>;
|
||||
fn get_payment_methods_store(&self) -> Box<dyn PaymentMethodsStorageInterface>;
|
||||
fn get_cache_store(&self) -> Box<(dyn RedisConnInterface + Send + Sync + 'static)>;
|
||||
fn get_cache_store(&self) -> Box<dyn RedisConnInterface + Send + Sync + 'static>;
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
@ -168,7 +168,7 @@ pub trait GlobalStorageInterface:
|
||||
+ RedisConnInterface
|
||||
+ 'static
|
||||
{
|
||||
fn get_cache_store(&self) -> Box<(dyn RedisConnInterface + Send + Sync + 'static)>;
|
||||
fn get_cache_store(&self) -> Box<dyn RedisConnInterface + Send + Sync + 'static>;
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
@ -226,14 +226,14 @@ impl StorageInterface for Store {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
|
||||
fn get_cache_store(&self) -> Box<(dyn RedisConnInterface + Send + Sync + 'static)> {
|
||||
fn get_cache_store(&self) -> Box<dyn RedisConnInterface + Send + Sync + 'static> {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl GlobalStorageInterface for Store {
|
||||
fn get_cache_store(&self) -> Box<(dyn RedisConnInterface + Send + Sync + 'static)> {
|
||||
fn get_cache_store(&self) -> Box<dyn RedisConnInterface + Send + Sync + 'static> {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
}
|
||||
@ -249,14 +249,14 @@ impl StorageInterface for MockDb {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
|
||||
fn get_cache_store(&self) -> Box<(dyn RedisConnInterface + Send + Sync + 'static)> {
|
||||
fn get_cache_store(&self) -> Box<dyn RedisConnInterface + Send + Sync + 'static> {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl GlobalStorageInterface for MockDb {
|
||||
fn get_cache_store(&self) -> Box<(dyn RedisConnInterface + Send + Sync + 'static)> {
|
||||
fn get_cache_store(&self) -> Box<dyn RedisConnInterface + Send + Sync + 'static> {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user