Add futures trait compatibility #43
clippy
120 errors, 8 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 120 |
Warning | 8 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.72.1 (d5c2e9c34 2023-09-13)
- cargo 1.72.1 (103a7ff2e 2023-08-15)
- clippy 0.1.72 (d5c2e9c3 2023-09-13)
Annotations
Check warning on line 55 in mfio/src/stdeq.rs
github-actions / clippy
unnecessary closure used to substitute value for `Option::None`
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
Check warning on line 41 in mfio/src/stdeq.rs
github-actions / clippy
unnecessary closure used to substitute value for `Option::None`
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
Check warning on line 59 in mfio/src/futures_compat.rs
github-actions / clippy
this lifetime isn't used in the impl
warning: this lifetime isn't used in the impl
--> mfio/src/futures_compat.rs:59:6
|
59 | 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
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:25
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:49
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:25
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:49
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:25
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:49
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:25
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:49
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:25
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:49
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:25
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:49
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:25
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:49
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^
Check failure on line 1304 in mfio-rt/src/native/mod.rs
github-actions / clippy
type inside `async` block must be known in this context
error[E0698]: type inside `async` block must be known in this context
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^ cannot infer type
|
note: the type is part of the `async` block because of this `await`
--> mfio-rt/src/native/mod.rs:1304:58
|
1304 | Tokio::run_with_mut(rt, closure).await;
| ^^^^^