Skip to content

Add futures trait compatibility #45

Add futures trait compatibility

Add futures trait compatibility #45

GitHub Actions / clippy failed Dec 5, 2023 in 2s

clippy

120 errors, 11 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 120
Warning 11
Note 0
Help 0

Versions

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

Annotations

Check warning on line 55 in mfio/src/stdeq.rs

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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;
     |                                                          ^^^^^