Skip to content

Commit 907e285

Browse files
committed
fix clippy
1 parent c3c7cea commit 907e285

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ 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+
&& ERROR_INVALID_PARAMETER
89+
== TryInto::<u32>::try_into(WSAGetLastError()).expect("overflow")
8990
{
9091
// duplicate bind
9192
return Ok(());

0 commit comments

Comments
 (0)