Skip to content

Fix IOCP on real windows #21

Fix IOCP on real windows

Fix IOCP on real windows #21

GitHub Actions / clippy succeeded Nov 3, 2023 in 0s

clippy

8 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 8
Note 0
Help 0

Versions

  • rustc 1.73.0 (cc66ad468 2023-10-03)
  • cargo 1.73.0 (9c4383fb5 2023-08-26)
  • clippy 0.1.73 (cc66ad4 2023-10-03)

Annotations

Check warning on line 115 in mfio-rt/src/native/impls/io_uring/tcp_stream.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting to the same type is unnecessary (`usize` -> `usize`)

warning: casting to the same type is unnecessary (`usize` -> `usize`)
   --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:115:71
    |
115 |                 msg.msg_iovlen = core::cmp::min(queue.len() as usize, *IOV_MAX as usize) as _;
    |                                                                       ^^^^^^^^^^^^^^^^^ help: try: `*IOV_MAX`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Check warning on line 115 in mfio-rt/src/native/impls/io_uring/tcp_stream.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting to the same type is unnecessary (`usize` -> `usize`)

warning: casting to the same type is unnecessary (`usize` -> `usize`)
   --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:115:49
    |
115 |                 msg.msg_iovlen = core::cmp::min(queue.len() as usize, *IOV_MAX as usize) as _;
    |                                                 ^^^^^^^^^^^^^^^^^^^^ help: try: `queue.len()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
    = note: `#[warn(clippy::unnecessary_cast)]` on by default

Check warning on line 497 in mfio-rt/src/native/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `register_file` is never used

warning: method `register_file` is never used
   --> mfio-rt/src/native/mod.rs:497:8
    |
481 | impl NativeRt {
    | ------------- method in this implementation
...
497 |     fn register_file(&self, file: std::fs::File) -> NativeFile {
    |        ^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

Check warning on line 197 in mfio-rt/src/test_suite.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `v`

warning: unused variable: `v`
   --> mfio-rt/src/test_suite.rs:197:13
    |
197 |         let v = listener.next().await.unwrap();
    |             ^ help: if this is intentional, prefix it with an underscore: `_v`
    |
    = note: `#[warn(unused_variables)]` on by default

Check warning on line 115 in mfio-rt/src/native/impls/io_uring/tcp_stream.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting to the same type is unnecessary (`usize` -> `usize`)

warning: casting to the same type is unnecessary (`usize` -> `usize`)
   --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:115:71
    |
115 |                 msg.msg_iovlen = core::cmp::min(queue.len() as usize, *IOV_MAX as usize) as _;
    |                                                                       ^^^^^^^^^^^^^^^^^ help: try: `*IOV_MAX`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Check warning on line 115 in mfio-rt/src/native/impls/io_uring/tcp_stream.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting to the same type is unnecessary (`usize` -> `usize`)

warning: casting to the same type is unnecessary (`usize` -> `usize`)
   --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:115:49
    |
115 |                 msg.msg_iovlen = core::cmp::min(queue.len() as usize, *IOV_MAX as usize) as _;
    |                                                 ^^^^^^^^^^^^^^^^^^^^ help: try: `queue.len()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
    = note: `#[warn(clippy::unnecessary_cast)]` on by default

Check warning on line 497 in mfio-rt/src/native/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `register_file` is never used

warning: method `register_file` is never used
   --> mfio-rt/src/native/mod.rs:497:8
    |
481 | impl NativeRt {
    | ------------- method in this implementation
...
497 |     fn register_file(&self, file: std::fs::File) -> NativeFile {
    |        ^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

Check warning on line 197 in mfio-rt/src/test_suite.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `v`

warning: unused variable: `v`
   --> mfio-rt/src/test_suite.rs:197:13
    |
197 |         let v = listener.next().await.unwrap();
    |             ^ help: if this is intentional, prefix it with an underscore: `_v`
    |
    = note: `#[warn(unused_variables)]` on by default