Skip to content

Documentation dump

Documentation dump #50

Triggered via push December 6, 2023 15:56
Status Success
Total duration 11m 24s
Artifacts

coverage.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

197 warnings
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:71 | 116 | 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
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:49 | 116 | 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
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1296:9 | 1296 | / net_test_suite!(net_tests_all, |closure| { 1297 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1298 | | tokio::runtime::Runtime::new().unwrap().block_on(async { 1299 | | use mfio::backend::{integrations::tokio::Tokio, *}; ... | 1307 | | }); 1308 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1285:9 | 1285 | / net_test_suite!(net_tests_default, |closure| { 1286 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1287 | | 1288 | | tokio::runtime::Runtime::new().unwrap().block_on(async { ... | 1293 | | }); 1294 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1225:9 | 1225 | / net_test_suite!(net_tests_all, |closure| { 1226 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1227 | | smol::block_on(async { 1228 | | use mfio::backend::{integrations::async_io::AsyncIo, *}; ... | 1236 | | }); 1237 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1214:9 | 1214 | / net_test_suite!(net_tests_default, |closure| { 1215 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1216 | | 1217 | | smol::block_on(async { ... | 1222 | | }); 1223 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1157:5 | 1157 | / net_test_suite!(net_tests_all, |closure| { 1158 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1159 | | for (name, rt) in crate::NativeRt::builder().enable_all().build_each() { 1160 | | println!("{name}"); ... | 1165 | | } 1166 | | }); | |______- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1150:5 | 1150 | / net_test_suite!(net_tests_default, |closure| { 1151 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1152 | | let mut rt = crate::NativeRt::default(); 1153 | | let rt = staticify(&mut rt); 1154 | | rt.run(closure); 1155 | | }); | |______- in this macro invocation | = note: `#[warn(dead_code)]` on by default = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:71 | 116 | 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
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:49 | 116 | 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
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
associated function `null` is never used: mfio-rt/src/util.rs#L128
warning: associated function `null` is never used --> mfio-rt/src/util.rs:128:12 | 127 | impl RawBox { | ----------- associated function in this implementation 128 | pub fn null() -> Self { | ^^^^
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1296:9 | 1296 | / net_test_suite!(net_tests_all, |closure| { 1297 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1298 | | tokio::runtime::Runtime::new().unwrap().block_on(async { 1299 | | use mfio::backend::{integrations::tokio::Tokio, *}; ... | 1307 | | }); 1308 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1285:9 | 1285 | / net_test_suite!(net_tests_default, |closure| { 1286 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1287 | | 1288 | | tokio::runtime::Runtime::new().unwrap().block_on(async { ... | 1293 | | }); 1294 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1225:9 | 1225 | / net_test_suite!(net_tests_all, |closure| { 1226 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1227 | | smol::block_on(async { 1228 | | use mfio::backend::{integrations::async_io::AsyncIo, *}; ... | 1236 | | }); 1237 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1214:9 | 1214 | / net_test_suite!(net_tests_default, |closure| { 1215 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1216 | | 1217 | | smol::block_on(async { ... | 1222 | | }); 1223 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1157:5 | 1157 | / net_test_suite!(net_tests_all, |closure| { 1158 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1159 | | for (name, rt) in crate::NativeRt::builder().enable_all().build_each() { 1160 | | println!("{name}"); ... | 1165 | | } 1166 | | }); | |______- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1150:5 | 1150 | / net_test_suite!(net_tests_default, |closure| { 1151 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1152 | | let mut rt = crate::NativeRt::default(); 1153 | | let rt = staticify(&mut rt); 1154 | | rt.run(closure); 1155 | | }); | |______- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `new_socket` is never used: mfio-rt/src/native/impls/unix_extra.rs#L19
warning: function `new_socket` is never used --> mfio-rt/src/native/impls/unix_extra.rs:19:15 | 19 | pub(crate) fn new_socket( | ^^^^^^^^^^
function `new_for_addr` is never used: mfio-rt/src/native/impls/unix_extra.rs#L7
warning: function `new_for_addr` is never used --> mfio-rt/src/native/impls/unix_extra.rs:7:15 | 7 | pub(crate) fn new_for_addr( | ^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
unused import: `cglue::prelude::v1::*`: mfio/src/io/mod.rs#L78
warning: unused import: `cglue::prelude::v1::*` --> mfio/src/io/mod.rs:78:5 | 78 | use cglue::prelude::v1::*; | ^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
associated function `null` is never used: mfio-rt/src/util.rs#L128
warning: associated function `null` is never used --> mfio-rt/src/util.rs:128:12 | 127 | impl RawBox { | ----------- associated function in this implementation 128 | pub fn null() -> Self { | ^^^^
function `new_socket` is never used: mfio-rt/src/native/impls/unix_extra.rs#L19
warning: function `new_socket` is never used --> mfio-rt/src/native/impls/unix_extra.rs:19:15 | 19 | pub(crate) fn new_socket( | ^^^^^^^^^^
function `new_for_addr` is never used: mfio-rt/src/native/impls/unix_extra.rs#L7
warning: function `new_for_addr` is never used --> mfio-rt/src/native/impls/unix_extra.rs:7:15 | 7 | pub(crate) fn new_for_addr( | ^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
unused import: `cglue::prelude::v1`: mfio/src/io/mod.rs#L78
warning: unused import: `cglue::prelude::v1` --> mfio/src/io/mod.rs:78:5 | 78 | use cglue::prelude::v1::*; | ^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:71 | 116 | 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
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:49 | 116 | 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
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1296:9 | 1296 | / net_test_suite!(net_tests_all, |closure| { 1297 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1298 | | tokio::runtime::Runtime::new().unwrap().block_on(async { 1299 | | use mfio::backend::{integrations::tokio::Tokio, *}; ... | 1307 | | }); 1308 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1285:9 | 1285 | / net_test_suite!(net_tests_default, |closure| { 1286 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1287 | | 1288 | | tokio::runtime::Runtime::new().unwrap().block_on(async { ... | 1293 | | }); 1294 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1225:9 | 1225 | / net_test_suite!(net_tests_all, |closure| { 1226 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1227 | | smol::block_on(async { 1228 | | use mfio::backend::{integrations::async_io::AsyncIo, *}; ... | 1236 | | }); 1237 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1214:9 | 1214 | / net_test_suite!(net_tests_default, |closure| { 1215 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1216 | | 1217 | | smol::block_on(async { ... | 1222 | | }); 1223 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1157:5 | 1157 | / net_test_suite!(net_tests_all, |closure| { 1158 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1159 | | for (name, rt) in crate::NativeRt::builder().enable_all().build_each() { 1160 | | println!("{name}"); ... | 1165 | | } 1166 | | }); | |______- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1150:5 | 1150 | / net_test_suite!(net_tests_default, |closure| { 1151 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1152 | | let mut rt = crate::NativeRt::default(); 1153 | | let rt = staticify(&mut rt); 1154 | | rt.run(closure); 1155 | | }); | |______- in this macro invocation | = note: `#[warn(dead_code)]` on by default = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
unused import: `cglue::prelude::v1::*`: mfio/src/io/mod.rs#L78
warning: unused import: `cglue::prelude::v1::*` --> mfio/src/io/mod.rs:78:5 | 78 | use cglue::prelude::v1::*; | ^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:71 | 116 | 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
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:49 | 116 | 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
associated function `null` is never used: mfio-rt/src/util.rs#L128
warning: associated function `null` is never used --> mfio-rt/src/util.rs:128:12 | 127 | impl RawBox { | ----------- associated function in this implementation 128 | pub fn null() -> Self { | ^^^^
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1296:9 | 1296 | / net_test_suite!(net_tests_all, |closure| { 1297 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1298 | | tokio::runtime::Runtime::new().unwrap().block_on(async { 1299 | | use mfio::backend::{integrations::tokio::Tokio, *}; ... | 1307 | | }); 1308 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1285:9 | 1285 | / net_test_suite!(net_tests_default, |closure| { 1286 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1287 | | 1288 | | tokio::runtime::Runtime::new().unwrap().block_on(async { ... | 1293 | | }); 1294 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1225:9 | 1225 | / net_test_suite!(net_tests_all, |closure| { 1226 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1227 | | smol::block_on(async { 1228 | | use mfio::backend::{integrations::async_io::AsyncIo, *}; ... | 1236 | | }); 1237 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
unused import: `cglue::prelude::v1`: mfio/src/io/mod.rs#L78
warning: unused import: `cglue::prelude::v1` --> mfio/src/io/mod.rs:78:5 | 78 | use cglue::prelude::v1::*; | ^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1214:9 | 1214 | / net_test_suite!(net_tests_default, |closure| { 1215 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1216 | | 1217 | | smol::block_on(async { ... | 1222 | | }); 1223 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1157:5 | 1157 | / net_test_suite!(net_tests_all, |closure| { 1158 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1159 | | for (name, rt) in crate::NativeRt::builder().enable_all().build_each() { 1160 | | println!("{name}"); ... | 1165 | | } 1166 | | }); | |______- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1150:5 | 1150 | / net_test_suite!(net_tests_default, |closure| { 1151 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1152 | | let mut rt = crate::NativeRt::default(); 1153 | | let rt = staticify(&mut rt); 1154 | | rt.run(closure); 1155 | | }); | |______- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `new_socket` is never used: mfio-rt/src/native/impls/unix_extra.rs#L19
warning: function `new_socket` is never used --> mfio-rt/src/native/impls/unix_extra.rs:19:15 | 19 | pub(crate) fn new_socket( | ^^^^^^^^^^
function `new_for_addr` is never used: mfio-rt/src/native/impls/unix_extra.rs#L7
warning: function `new_for_addr` is never used --> mfio-rt/src/native/impls/unix_extra.rs:7:15 | 7 | pub(crate) fn new_for_addr( | ^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
associated function `null` is never used: mfio-rt/src/util.rs#L128
warning: associated function `null` is never used --> mfio-rt/src/util.rs:128:12 | 127 | impl RawBox { | ----------- associated function in this implementation 128 | pub fn null() -> Self { | ^^^^
function `new_socket` is never used: mfio-rt/src/native/impls/unix_extra.rs#L19
warning: function `new_socket` is never used --> mfio-rt/src/native/impls/unix_extra.rs:19:15 | 19 | pub(crate) fn new_socket( | ^^^^^^^^^^
function `new_for_addr` is never used: mfio-rt/src/native/impls/unix_extra.rs#L7
warning: function `new_for_addr` is never used --> mfio-rt/src/native/impls/unix_extra.rs:7:15 | 7 | pub(crate) fn new_for_addr( | ^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:71 | 116 | 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
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:49 | 116 | 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
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1296:9 | 1296 | / net_test_suite!(net_tests_all, |closure| { 1297 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1298 | | tokio::runtime::Runtime::new().unwrap().block_on(async { 1299 | | use mfio::backend::{integrations::tokio::Tokio, *}; ... | 1307 | | }); 1308 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1285:9 | 1285 | / net_test_suite!(net_tests_default, |closure| { 1286 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1287 | | 1288 | | tokio::runtime::Runtime::new().unwrap().block_on(async { ... | 1293 | | }); 1294 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1225:9 | 1225 | / net_test_suite!(net_tests_all, |closure| { 1226 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1227 | | smol::block_on(async { 1228 | | use mfio::backend::{integrations::async_io::AsyncIo, *}; ... | 1236 | | }); 1237 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1214:9 | 1214 | / net_test_suite!(net_tests_default, |closure| { 1215 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1216 | | 1217 | | smol::block_on(async { ... | 1222 | | }); 1223 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1157:5 | 1157 | / net_test_suite!(net_tests_all, |closure| { 1158 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1159 | | for (name, rt) in crate::NativeRt::builder().enable_all().build_each() { 1160 | | println!("{name}"); ... | 1165 | | } 1166 | | }); | |______- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1150:5 | 1150 | / net_test_suite!(net_tests_default, |closure| { 1151 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1152 | | let mut rt = crate::NativeRt::default(); 1153 | | let rt = staticify(&mut rt); 1154 | | rt.run(closure); 1155 | | }); | |______- in this macro invocation | = note: `#[warn(dead_code)]` on by default = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
unused import: `cglue::prelude::v1::*`: mfio/src/io/mod.rs#L78
warning: unused import: `cglue::prelude::v1::*` --> mfio/src/io/mod.rs:78:5 | 78 | use cglue::prelude::v1::*; | ^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:71 | 116 | 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
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:49 | 116 | 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
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
unused import: `cglue::prelude::v1`: mfio/src/io/mod.rs#L78
warning: unused import: `cglue::prelude::v1` --> mfio/src/io/mod.rs:78:5 | 78 | use cglue::prelude::v1::*; | ^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
associated function `null` is never used: mfio-rt/src/util.rs#L128
warning: associated function `null` is never used --> mfio-rt/src/util.rs:128:12 | 127 | impl RawBox { | ----------- associated function in this implementation 128 | pub fn null() -> Self { | ^^^^
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1296:9 | 1296 | / net_test_suite!(net_tests_all, |closure| { 1297 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1298 | | tokio::runtime::Runtime::new().unwrap().block_on(async { 1299 | | use mfio::backend::{integrations::tokio::Tokio, *}; ... | 1307 | | }); 1308 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1285:9 | 1285 | / net_test_suite!(net_tests_default, |closure| { 1286 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1287 | | 1288 | | tokio::runtime::Runtime::new().unwrap().block_on(async { ... | 1293 | | }); 1294 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1225:9 | 1225 | / net_test_suite!(net_tests_all, |closure| { 1226 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1227 | | smol::block_on(async { 1228 | | use mfio::backend::{integrations::async_io::AsyncIo, *}; ... | 1236 | | }); 1237 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1214:9 | 1214 | / net_test_suite!(net_tests_default, |closure| { 1215 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1216 | | 1217 | | smol::block_on(async { ... | 1222 | | }); 1223 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1157:5 | 1157 | / net_test_suite!(net_tests_all, |closure| { 1158 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1159 | | for (name, rt) in crate::NativeRt::builder().enable_all().build_each() { 1160 | | println!("{name}"); ... | 1165 | | } 1166 | | }); | |______- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1150:5 | 1150 | / net_test_suite!(net_tests_default, |closure| { 1151 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1152 | | let mut rt = crate::NativeRt::default(); 1153 | | let rt = staticify(&mut rt); 1154 | | rt.run(closure); 1155 | | }); | |______- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `new_socket` is never used: mfio-rt/src/native/impls/unix_extra.rs#L19
warning: function `new_socket` is never used --> mfio-rt/src/native/impls/unix_extra.rs:19:15 | 19 | pub(crate) fn new_socket( | ^^^^^^^^^^
function `new_for_addr` is never used: mfio-rt/src/native/impls/unix_extra.rs#L7
warning: function `new_for_addr` is never used --> mfio-rt/src/native/impls/unix_extra.rs:7:15 | 7 | pub(crate) fn new_for_addr( | ^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
associated function `null` is never used: mfio-rt/src/util.rs#L128
warning: associated function `null` is never used --> mfio-rt/src/util.rs:128:12 | 127 | impl RawBox { | ----------- associated function in this implementation 128 | pub fn null() -> Self { | ^^^^
function `new_socket` is never used: mfio-rt/src/native/impls/unix_extra.rs#L19
warning: function `new_socket` is never used --> mfio-rt/src/native/impls/unix_extra.rs:19:15 | 19 | pub(crate) fn new_socket( | ^^^^^^^^^^
function `new_for_addr` is never used: mfio-rt/src/native/impls/unix_extra.rs#L7
warning: function `new_for_addr` is never used --> mfio-rt/src/native/impls/unix_extra.rs:7:15 | 7 | pub(crate) fn new_for_addr( | ^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
associated function `null` is never used: mfio-rt/src/util.rs#L128
warning: associated function `null` is never used --> mfio-rt/src/util.rs:128:12 | 127 | impl RawBox { | ----------- associated function in this implementation 128 | pub fn null() -> Self { | ^^^^
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1296:9 | 1296 | / net_test_suite!(net_tests_all, |closure| { 1297 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1298 | | tokio::runtime::Runtime::new().unwrap().block_on(async { 1299 | | use mfio::backend::{integrations::tokio::Tokio, *}; ... | 1307 | | }); 1308 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1285:9 | 1285 | / net_test_suite!(net_tests_default, |closure| { 1286 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1287 | | 1288 | | tokio::runtime::Runtime::new().unwrap().block_on(async { ... | 1293 | | }); 1294 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1225:9 | 1225 | / net_test_suite!(net_tests_all, |closure| { 1226 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1227 | | smol::block_on(async { 1228 | | use mfio::backend::{integrations::async_io::AsyncIo, *}; ... | 1236 | | }); 1237 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1214:9 | 1214 | / net_test_suite!(net_tests_default, |closure| { 1215 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1216 | | 1217 | | smol::block_on(async { ... | 1222 | | }); 1223 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1157:5 | 1157 | / net_test_suite!(net_tests_all, |closure| { 1158 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1159 | | for (name, rt) in crate::NativeRt::builder().enable_all().build_each() { 1160 | | println!("{name}"); ... | 1165 | | } 1166 | | }); | |______- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1150:5 | 1150 | / net_test_suite!(net_tests_default, |closure| { 1151 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1152 | | let mut rt = crate::NativeRt::default(); 1153 | | let rt = staticify(&mut rt); 1154 | | rt.run(closure); 1155 | | }); | |______- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `new_socket` is never used: mfio-rt/src/native/impls/unix_extra.rs#L19
warning: function `new_socket` is never used --> mfio-rt/src/native/impls/unix_extra.rs:19:15 | 19 | pub(crate) fn new_socket( | ^^^^^^^^^^
function `new_for_addr` is never used: mfio-rt/src/native/impls/unix_extra.rs#L7
warning: function `new_for_addr` is never used --> mfio-rt/src/native/impls/unix_extra.rs:7:15 | 7 | pub(crate) fn new_for_addr( | ^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
unused import: `cglue::prelude::v1::*`: mfio/src/io/mod.rs#L78
warning: unused import: `cglue::prelude::v1::*` --> mfio/src/io/mod.rs:78:5 | 78 | use cglue::prelude::v1::*; | ^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
associated function `null` is never used: mfio-rt/src/util.rs#L128
warning: associated function `null` is never used --> mfio-rt/src/util.rs:128:12 | 127 | impl RawBox { | ----------- associated function in this implementation 128 | pub fn null() -> Self { | ^^^^
function `new_socket` is never used: mfio-rt/src/native/impls/unix_extra.rs#L19
warning: function `new_socket` is never used --> mfio-rt/src/native/impls/unix_extra.rs:19:15 | 19 | pub(crate) fn new_socket( | ^^^^^^^^^^
function `new_for_addr` is never used: mfio-rt/src/native/impls/unix_extra.rs#L7
warning: function `new_for_addr` is never used --> mfio-rt/src/native/impls/unix_extra.rs:7:15 | 7 | pub(crate) fn new_for_addr( | ^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
unused import: `cglue::prelude::v1`: mfio/src/io/mod.rs#L78
warning: unused import: `cglue::prelude::v1` --> mfio/src/io/mod.rs:78:5 | 78 | use cglue::prelude::v1::*; | ^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:71 | 116 | 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
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:49 | 116 | 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
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1296:9 | 1296 | / net_test_suite!(net_tests_all, |closure| { 1297 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1298 | | tokio::runtime::Runtime::new().unwrap().block_on(async { 1299 | | use mfio::backend::{integrations::tokio::Tokio, *}; ... | 1307 | | }); 1308 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1285:9 | 1285 | / net_test_suite!(net_tests_default, |closure| { 1286 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1287 | | 1288 | | tokio::runtime::Runtime::new().unwrap().block_on(async { ... | 1293 | | }); 1294 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1225:9 | 1225 | / net_test_suite!(net_tests_all, |closure| { 1226 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1227 | | smol::block_on(async { 1228 | | use mfio::backend::{integrations::async_io::AsyncIo, *}; ... | 1236 | | }); 1237 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1214:9 | 1214 | / net_test_suite!(net_tests_default, |closure| { 1215 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1216 | | 1217 | | smol::block_on(async { ... | 1222 | | }); 1223 | | }); | |__________- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1157:5 | 1157 | / net_test_suite!(net_tests_all, |closure| { 1158 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1159 | | for (name, rt) in crate::NativeRt::builder().enable_all().build_each() { 1160 | | println!("{name}"); ... | 1165 | | } 1166 | | }); | |______- in this macro invocation | = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
function `test_run` is never used: mfio-rt/src/test_suite.rs#L847
warning: function `test_run` is never used --> mfio-rt/src/test_suite.rs:847:22 | 847 | async fn test_run<T: 'static, F: Future<Output = ()>>( | ^^^^^^^^ | ::: mfio-rt/src/native/mod.rs:1150:5 | 1150 | / net_test_suite!(net_tests_default, |closure| { 1151 | | let _ = ::env_logger::builder().is_test(true).try_init(); 1152 | | let mut rt = crate::NativeRt::default(); 1153 | | let rt = staticify(&mut rt); 1154 | | rt.run(closure); 1155 | | }); | |______- in this macro invocation | = note: `#[warn(dead_code)]` on by default = note: this warning originates in the macro `net_test_suite` (in Nightly builds, run with -Z macro-backtrace for more info)
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
this `RefCell` reference is held across an `await` point: mfio-netfs/src/net/server.rs#L371
warning: this `RefCell` reference is held across an `await` point --> mfio-netfs/src/net/server.rs:371:41 | 371 | ... read_dir_streams.borrow().get(stream_id as usize) | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: ensure the reference is dropped before calling `await` note: these are all the `await` points this reference is held through --> mfio-netfs/src/net/server.rs:373:78 | 373 | ... let stream_buf = &mut *stream.lock().await; | ^^^^^ ... 383 | ... .await; | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref = note: `#[warn(clippy::await_holding_refcell_ref)]` on by default
redundant guard: mfio-rt/src/util.rs#L44
warning: redundant guard --> mfio-rt/src/util.rs:44:39 | 44 | (Some(_), Some(b)) if b == Component::ParentDir => return None, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards help: try | 44 - (Some(_), Some(b)) if b == Component::ParentDir => return None, 44 + (Some(_), Some(Component::ParentDir)) => return None, |
redundant guard: mfio-rt/src/util.rs#L43
warning: redundant guard --> mfio-rt/src/util.rs:43:39 | 43 | (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards = note: `#[warn(clippy::redundant_guards)]` on by default help: try | 43 - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), 43 + (Some(a), Some(Component::CurDir)) => comps.push(a), |
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:71 | 116 | 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
casting to the same type is unnecessary (`usize` -> `usize`): mfio-rt/src/native/impls/io_uring/tcp_stream.rs#L116
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> mfio-rt/src/native/impls/io_uring/tcp_stream.rs:116:49 | 116 | 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
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L54
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:54:17 | 54 | / pos.checked_sub((-val) as u64) 55 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |______________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
unnecessary closure used to substitute value for `Option::None`: mfio/src/stdeq.rs#L40
warning: unnecessary closure used to substitute value for `Option::None` --> mfio/src/stdeq.rs:40:21 | 40 | / end.checked_sub((-val) as u64) 41 | | .ok_or_else(|| std::io::ErrorKind::InvalidInput)? | |__________________________----------------------------------------------^ | | | help: use `ok_or(..)` instead: `ok_or(std::io::ErrorKind::InvalidInput)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
this lifetime isn't used in the impl: mfio/src/futures_compat.rs#L112
warning: this lifetime isn't used in the impl --> mfio/src/futures_compat.rs:112:6 | 112 | impl<'a, Io: ?Sized + stdeq::StreamPos<u64>> FuturesCompat for Io {} | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
test-coverage
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test-coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test-coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test-coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test-coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/