mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
chore: address Rust 1.72 clippy lints (#2099)
This commit is contained in:
@ -9,7 +9,7 @@ pub type PgPool = bb8::Pool<async_bb8_diesel::ConnectionManager<PgConnection>>;
|
|||||||
|
|
||||||
pub type PgPooledConn = async_bb8_diesel::Connection<PgConnection>;
|
pub type PgPooledConn = async_bb8_diesel::Connection<PgConnection>;
|
||||||
|
|
||||||
///
|
/// Creates a Redis connection pool for the specified Redis settings
|
||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
/// Panics if failed to create a redis pool
|
/// Panics if failed to create a redis pool
|
||||||
|
|||||||
@ -25,7 +25,7 @@ use uuid::Uuid;
|
|||||||
|
|
||||||
pub use self::{
|
pub use self::{
|
||||||
ext_traits::{OptionExt, ValidateCall},
|
ext_traits::{OptionExt, ValidateCall},
|
||||||
storage::*,
|
storage::PaymentIntent,
|
||||||
};
|
};
|
||||||
use crate::{
|
use crate::{
|
||||||
consts,
|
consts,
|
||||||
|
|||||||
@ -7,6 +7,10 @@ pub type PgPool = bb8::Pool<async_bb8_diesel::ConnectionManager<PgConnection>>;
|
|||||||
|
|
||||||
pub type PgPooledConn = async_bb8_diesel::Connection<PgConnection>;
|
pub type PgPooledConn = async_bb8_diesel::Connection<PgConnection>;
|
||||||
|
|
||||||
|
/// Creates a Redis connection pool for the specified Redis settings
|
||||||
|
/// # Panics
|
||||||
|
///
|
||||||
|
/// Panics if failed to create a redis pool
|
||||||
#[allow(clippy::expect_used)]
|
#[allow(clippy::expect_used)]
|
||||||
pub async fn redis_connection(
|
pub async fn redis_connection(
|
||||||
redis: &redis_interface::RedisSettings,
|
redis: &redis_interface::RedisSettings,
|
||||||
|
|||||||
Reference in New Issue
Block a user