mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 07:17:27 +00:00
feat: replace reduntant closure for method call
This commit is contained in:
parent
78b52c0d23
commit
50ccac3cc9
2 changed files with 2 additions and 2 deletions
|
|
@ -129,7 +129,7 @@ impl ValveProtocol {
|
|||
let socket = UdpSocket::new(address, &timeout_settings)?;
|
||||
let retry_count = timeout_settings.as_ref().map_or_else(
|
||||
|| TimeoutSettings::default().get_retries(),
|
||||
|t| t.get_retries(),
|
||||
TimeoutSettings::get_retries,
|
||||
);
|
||||
|
||||
Ok(Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue