mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +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 value = splited
|
||||
.get(position + 1)
|
||||
.map_or_else(String::new, |v| v.clone());
|
||||
.map_or_else(String::new, Clone::clone);
|
||||
|
||||
server_values.insert(key, value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue