Fixing clippy

This commit is contained in:
Ryan Summers 2021-06-15 13:49:06 +02:00
parent 7294a69b66
commit 99114e3c9c

View File

@ -291,10 +291,7 @@ impl DataStream {
return Err(());
}
let mut socket = self.stack.socket().map_err(|err| match err {
<NetworkReference as UdpClientStack>::Error::NoIpAddress => (),
_ => (),
})?;
let mut socket = self.stack.socket().map_err(|_| ())?;
self.stack.connect(&mut socket, remote).unwrap();