Refactor pipeline #1757
clippy
5 errors, 1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 5 |
Warning | 1 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.70.0 (90c541806 2023-05-31)
- cargo 1.70.0 (ec8a8a0ca 2023-04-25)
- clippy 0.1.70 (90c5418 2023-05-31)
Annotations
Check failure on line 202 in ntex-service/src/apply.rs
github-actions / clippy
type annotations needed
error[E0282]: type annotations needed
--> ntex-service/src/apply.rs:198:28
|
198 | Poll::Ready(Ok(Apply {
| ____________________________^
199 | | service: svc.into(),
200 | | f: this.f.take().unwrap(),
201 | | r: marker::PhantomData,
202 | | }))
| |_____________^ cannot infer type of the type parameter `T` declared on the struct `Apply`
|
help: consider specifying the generic arguments
|
198 | Poll::Ready(Ok(Apply::<T, Req, F, R, In, Out, Err> {
| ++++++++++++++++++++++++++++++
Check failure on line 403 in ntex-service/src/lib.rs
github-actions / clippy
unresolved import `crate::pipeline::CreatePipeline`
error[E0432]: unresolved import `crate::pipeline::CreatePipeline`
--> ntex-service/src/lib.rs:403:13
|
403 | pub use crate::pipeline::CreatePipeline;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `CreatePipeline` in `pipeline`
Check failure on line 32 in ntex-service/src/lib.rs
github-actions / clippy
unresolved imports `self::pipeline::Pipeline`, `self::pipeline::PipelineCall`
error[E0432]: unresolved imports `self::pipeline::Pipeline`, `self::pipeline::PipelineCall`
--> ntex-service/src/lib.rs:32:26
|
32 | pub use self::pipeline::{Pipeline, PipelineCall};
| ^^^^^^^^ ^^^^^^^^^^^^ no `PipelineCall` in `pipeline`
| |
| no `Pipeline` in `pipeline`
Check failure on line 9 in ntex-service/src/chain.rs
github-actions / clippy
unresolved import `crate::pipeline::CreatePipeline`
error[E0432]: unresolved import `crate::pipeline::CreatePipeline`
--> ntex-service/src/chain.rs:9:5
|
9 | use crate::pipeline::CreatePipeline;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `CreatePipeline` in `pipeline`
Check failure on line 22 in ntex-service/src/lib.rs
github-actions / clippy
file not found for module `pipeline`
error[E0583]: file not found for module `pipeline`
--> ntex-service/src/lib.rs:22:1
|
22 | mod pipeline;
| ^^^^^^^^^^^^^
|
= help: to create the module `pipeline`, create file "ntex-service/src/pipeline.rs" or "ntex-service/src/pipeline/mod.rs"
Check warning on line 145 in ntex-rt/src/lib.rs
github-actions / clippy
very complex type used. Consider factoring parts into `type` definitions
warning: very complex type used. Consider factoring parts into `type` definitions
--> ntex-rt/src/lib.rs:145:13
|
145 | Either<task::JoinHandle<T>, Pin<Box<dyn Future<Output = Result<T, Canceled>>>>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
= note: `#[warn(clippy::type_complexity)]` on by default