Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd7ccbb3

Browse files
author
Hirotaka Azuma
committed
Review fix: Avoid redundant function calls.
1 parent5551b3e commitd7ccbb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎tokio-postgres/src/config.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ impl Config {
378378

379379
/// Gets the time interval between TCP keepalive probes.
380380
pubfnget_keepalives_interval(&self) ->Option<Duration>{
381-
self.keepalive_config.interval.as_ref().copied()
381+
self.keepalive_config.interval
382382
}
383383

384384
/// Sets the maximum number of TCP keepalive probes that will be sent before dropping a connection.
@@ -391,7 +391,7 @@ impl Config {
391391

392392
/// Gets the maximum number of TCP keepalive probes that will be sent before dropping a connection.
393393
pubfnget_keepalives_retries(&self) ->Option<u32>{
394-
self.keepalive_config.retries.as_ref().copied()
394+
self.keepalive_config.retries
395395
}
396396

397397
/// Sets the requirements of the session.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp