Box up io_uring recv_msg #19
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
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
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
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 1064 in mfio/src/io/packet/mod.rs
github-actions / clippy
useless conversion to the same type: `io::packet::FullPacket<T, Perms>`
warning: useless conversion to the same type: `io::packet::FullPacket<T, Perms>`
--> mfio/src/io/packet/mod.rs:1064:9
|
1064 | self.into()
| ^^^^^^^^^^^ help: consider removing `.into()`: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
Check warning on line 115 in mfio-rt/src/native/impls/io_uring/tcp_stream.rs
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
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
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 1064 in mfio/src/io/packet/mod.rs
github-actions / clippy
useless conversion to the same type: `io::packet::FullPacket<T, Perms>`
warning: useless conversion to the same type: `io::packet::FullPacket<T, Perms>`
--> mfio/src/io/packet/mod.rs:1064:9
|
1064 | self.into()
| ^^^^^^^^^^^ help: consider removing `.into()`: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default