chore: replace the closure with the method itself

This commit is contained in:
CosminPerRam 2023-12-11 03:31:57 +02:00
parent 2836536842
commit f1094e0e68

View file

@ -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);
}