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(()); return Err(());
} }
let mut socket = self.stack.socket().map_err(|err| match err { let mut socket = self.stack.socket().map_err(|_| ())?;
<NetworkReference as UdpClientStack>::Error::NoIpAddress => (),
_ => (),
})?;
self.stack.connect(&mut socket, remote).unwrap(); self.stack.connect(&mut socket, remote).unwrap();