mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
perf: use of or followed by a function call
This commit is contained in:
parent
0aa498b30b
commit
a4bc430868
2 changed files with 5 additions and 5 deletions
|
|
@ -85,7 +85,7 @@ pub fn query_with_timeout_and_extra_settings(
|
|||
&socket_addr,
|
||||
*engine,
|
||||
extra_settings
|
||||
.or(Option::from(game.request_settings.clone()))
|
||||
.or_else(|| Option::from(game.request_settings.clone()))
|
||||
.map(ExtraRequestSettings::into),
|
||||
timeout_settings,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue