Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

chore: address Rust 1.72 clippy lints (#2099)

Shankar Singh Ccbbebe240809
diff --git a/crates/router/src/connection.rs b/crates/router/src/connection.rs
index 00d6496f1b..1a48b6e0e2 100644
--- a/crates/router/src/connection.rs
+++ b/crates/router/src/connection.rs
@@ -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
diff --git a/crates/router/src/utils.rs b/crates/router/src/utils.rs
index 6676f34b75..a5aa35b35b 100644
--- a/crates/router/src/utils.rs
+++ b/crates/router/src/utils.rs
@@ -25,7 +25,7 @@ use uuid::Uuid;
pub use self::{
ext_traits::{OptionExt, ValidateCall},
- storage::*,
+ storage::PaymentIntent,
};
use crate::{
consts,
diff --git a/crates/storage_impl/src/connection.rs b/crates/storage_impl/src/connection.rs
index 057e7762fd..2ac90521ba 100644
--- a/crates/storage_impl/src/connection.rs
+++ b/crates/storage_impl/src/connection.rs
@@ -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,