From 7ca992a42281e74d5f7b79bf875130cd9603838e Mon Sep 17 00:00:00 2001 From: Saru2003 Date: Wed, 23 Oct 2024 15:07:14 +0530 Subject: [PATCH] Fixing lint issue in updated validate return, v2 --- martin/src/pg/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/martin/src/pg/config.rs b/martin/src/pg/config.rs index 1aa855a76..856383c4f 100644 --- a/martin/src/pg/config.rs +++ b/martin/src/pg/config.rs @@ -100,13 +100,13 @@ impl PgConfig { if pool_size < 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.", - )); + )); } Ok(())