mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
chore(rust): fix windows static analysis errors (#9162)
The `static-analysis` job for Windows was not yet part of the rule set and therefore some clippy errors slipped through when we merged #9159.
This commit is contained in:
@@ -339,7 +339,7 @@ impl tun::Tun for Tun {
|
||||
ready!(
|
||||
self.state
|
||||
.as_mut()
|
||||
.ok_or_else(|| io::Error::new(io::ErrorKind::Other, "Internal state gone"))?
|
||||
.ok_or_else(|| io::Error::other("Internal state gone"))?
|
||||
.outbound_tx
|
||||
.poll_reserve(cx)
|
||||
.map_err(io::Error::other)?
|
||||
@@ -352,7 +352,7 @@ impl tun::Tun for Tun {
|
||||
fn send(&mut self, packet: IpPacket) -> io::Result<()> {
|
||||
self.state
|
||||
.as_mut()
|
||||
.ok_or_else(|| io::Error::new(io::ErrorKind::Other, "Internal state gone"))?
|
||||
.ok_or_else(|| io::Error::other("Internal state gone"))?
|
||||
.outbound_tx
|
||||
.send_item(packet)
|
||||
.map_err(io::Error::other)?;
|
||||
|
||||
Reference in New Issue
Block a user