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