[Crate] Apply clippy fixes

This commit is contained in:
CosminPerRam 2023-06-11 13:16:22 +03:00
parent b95b2abe0f
commit 80637f2398
2 changed files with 4 additions and 3 deletions

View file

@ -67,7 +67,7 @@ impl Socket for UdpSocket {
Ok(Self {
socket,
address: address.clone(),
address: *address,
})
}
@ -81,8 +81,9 @@ impl Socket for UdpSocket {
fn send(&mut self, data: &[u8]) -> GDResult<()> {
self.socket
.send_to(data, &self.address)
.send_to(data, self.address)
.map_err(|_| PacketSend)?;
Ok(())
}