Skip to content

Commit

Permalink
Merge pull request #177 from alexrudy/fix/non-exhuastive-tcp-config
Browse files Browse the repository at this point in the history
fix: mark config structs as non-exhaustive when fields are exposed
  • Loading branch information
alexrudy authored Oct 9, 2024
2 parents c7ea6c2 + d3b2223 commit 17a867d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/client/conn/transport/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ impl fmt::Display for TcpConnectionError {

/// Configuration for TCP connections.
#[derive(Debug, Clone)]
#[non_exhaustive]
pub struct TcpTransportConfig {
/// The timeout for connecting to a remote address.
pub connect_timeout: Option<Duration>,
Expand Down
1 change: 1 addition & 0 deletions src/client/pool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ impl<C: PoolableConnection> PoolInner<C> {

/// Configuration for a connection pool.
#[derive(Debug, Clone)]
#[non_exhaustive]
pub struct Config {
/// The maximum idle duration of a connection.
pub idle_timeout: Option<Duration>,
Expand Down

0 comments on commit 17a867d

Please sign in to comment.