mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
chore: replace the closure with the method itself
This commit is contained in:
parent
2836536842
commit
f1094e0e68
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ fn get_server_values_impl(socket: &mut UdpSocket) -> GDResult<HashMap<String, St
|
||||||
let key = splited[position].clone();
|
let key = splited[position].clone();
|
||||||
let value = splited
|
let value = splited
|
||||||
.get(position + 1)
|
.get(position + 1)
|
||||||
.map_or_else(String::new, |v| v.clone());
|
.map_or_else(String::new, Clone::clone);
|
||||||
|
|
||||||
server_values.insert(key, value);
|
server_values.insert(key, value);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue