Skip to content

Commit f55f74b

Browse files
committed
fix clippy
1 parent c3c7cea commit f55f74b

File tree

1 file changed

+1
-1
lines changed
  • core/src/net/operator/windows

1 file changed

+1
-1
lines changed

core/src/net/operator/windows/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl<'o> Operator<'o> {
8585
unsafe {
8686
let ret = CreateIoCompletionPort(handle, self.iocp, self.cpu, 0);
8787
if ret.is_null()
88-
&& ERROR_INVALID_PARAMETER == WSAGetLastError().try_into().expect("overflow")
88+
&& WSAGetLastError() == ERROR_INVALID_PARAMETER.try_into().expect("overflow")
8989
{
9090
// duplicate bind
9191
return Ok(());

0 commit comments

Comments
 (0)