Skip to content

Commit 0525d65

Browse files
committed
basic support IOCP Operator
1 parent 7c708a4 commit 0525d65

File tree

1 file changed

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

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ impl<'o> Operator<'o> {
260260
if INVALID_SOCKET == socket {
261261
return Err(Error::new(
262262
ErrorKind::Other,
263-
format!("add {} operation failed", syscall_name),
263+
format!("add {syscall_name} operation failed"),
264264
));
265265
}
266266
let size = size_of::<SOCKADDR_IN>()
@@ -288,7 +288,7 @@ impl<'o> Operator<'o> {
288288
break;
289289
}
290290
}
291-
eprintln!("add {} operation:{overlapped}", syscall_name);
291+
eprintln!("add {syscall_name} operation:{overlapped}");
292292
}
293293
Ok(())
294294
}
@@ -377,11 +377,11 @@ impl<'o> Operator<'o> {
377377
if WSA_IO_PENDING != errno {
378378
return Err(Error::new(
379379
ErrorKind::Other,
380-
format!("add {} operation failed with {errno}", syscall_name),
380+
format!("add {syscall_name} operation failed with {errno}"),
381381
));
382382
}
383383
}
384-
eprintln!("add {} operation:{overlapped}", syscall_name);
384+
eprintln!("add {syscall_name} operation:{overlapped}");
385385
}
386386
Ok(())
387387
}
@@ -470,11 +470,11 @@ impl<'o> Operator<'o> {
470470
if WSA_IO_PENDING != errno {
471471
return Err(Error::new(
472472
ErrorKind::Other,
473-
format!("add {} operation failed with {errno}", syscall_name),
473+
format!("add {syscall_name} operation failed with {errno}"),
474474
));
475475
}
476476
}
477-
eprintln!("add {} operation:{overlapped}", syscall_name);
477+
eprintln!("add {syscall_name} operation:{overlapped}");
478478
}
479479
Ok(())
480480
}

0 commit comments

Comments
 (0)