Fixing clippy
This commit is contained in:
parent
7294a69b66
commit
99114e3c9c
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user