From 36911fc67fcb63eda62cd570904fc4197dede66e Mon Sep 17 00:00:00 2001 From: Saru2003 Date: Wed, 23 Oct 2024 15:03:59 +0530 Subject: [PATCH] Fixing lint issue in updated validate return --- martin/src/pg/config.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/martin/src/pg/config.rs b/martin/src/pg/config.rs index fd4fbe877..1aa855a76 100644 --- a/martin/src/pg/config.rs +++ b/martin/src/pg/config.rs @@ -98,11 +98,15 @@ impl PgConfig { pub fn validate(&self) -> PgResult<()> { if let Some(pool_size) = self.pool_size { if pool_size < 1 { - return Err(PgError::ConfigError("pool_size must be greater than or equal to 1.")); + return Err(PgError::ConfigError( + "pool_size must be greater than or equal to 1.", + )); } } if self.connection_string.is_none() { - return Err(PgError::ConfigError("A connection string must be provided.")); + return Err(PgError::ConfigError( + "A connection string must be provided.", + )); } Ok(())