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(())