chore: address Rust 1.72 clippy lints (#2099)

This commit is contained in:
Shankar Singh C
2023-09-07 17:08:10 +05:30
committed by GitHub
parent bdf48320f9
commit cbbebe2408
3 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,7 @@ pub type PgPool = bb8::Pool<async_bb8_diesel::ConnectionManager<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

View File

@ -25,7 +25,7 @@ use uuid::Uuid;
pub use self::{
ext_traits::{OptionExt, ValidateCall},
storage::*,
storage::PaymentIntent,
};
use crate::{
consts,

View File

@ -7,6 +7,10 @@ pub type PgPool = bb8::Pool<async_bb8_diesel::ConnectionManager<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)]
pub async fn redis_connection(
redis: &redis_interface::RedisSettings,