Skip to content

Commit 8f43ba9

Browse files
committed
Apply Copilot suggestion
1 parent bd3b1ed commit 8f43ba9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ impl Default for IpStackConfig {
6363

6464
impl IpStackConfig {
6565
/// Set custom TCP configuration
66-
pub fn with_tcp_config(&mut self, config: TcpConfig) {
66+
pub fn with_tcp_config(&mut self, config: TcpConfig) -> &mut Self {
6767
self.tcp_config = Arc::new(config);
68+
self
6869
}
6970
pub fn udp_timeout(&mut self, timeout: Duration) -> &mut Self {
7071
self.udp_timeout = timeout;

0 commit comments

Comments
 (0)