File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ impl Config {
252
252
253
253
/// Gets the connection timeout, if one has been set with the
254
254
/// `connect_timeout` method.
255
- pub fn get_connect_timeout ( & self ) -> Option < Duration > {
255
+ pub fn get_connect_timeout ( & self ) -> Option < & Duration > {
256
256
self . config . get_connect_timeout ( )
257
257
}
258
258
Original file line number Diff line number Diff line change @@ -336,8 +336,8 @@ impl Config {
336
336
337
337
/// Gets the connection timeout, if one has been set with the
338
338
/// `connect_timeout` method.
339
- pub fn get_connect_timeout ( & self ) -> Option < Duration > {
340
- self . connect_timeout . as_ref ( ) . copied ( )
339
+ pub fn get_connect_timeout ( & self ) -> Option < & Duration > {
340
+ self . connect_timeout . as_ref ( )
341
341
}
342
342
343
343
/// Controls the use of TCP keepalive.
You can’t perform that action at this time.
0 commit comments