wip action #3978
Annotations
2 warnings
use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified:
bin/nanocld/src/objects/generic/mod.rs#L22
warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified
--> bin/nanocld/src/objects/generic/mod.rs:22:3
|
22 | async fn fn_action(
| ^^^^^
|
= note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future`
= note: `#[warn(async_fn_in_trait)]` on by default
help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change
|
22 ~ fn fn_action(
23 | &self,
24 | state: &SystemState,
25 ~ ) -> impl std::future::Future<Output = HttpResult<Self::StateActionOut>> + Send;
|
|
use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified:
bin/nanocld/src/objects/generic/mod.rs#L22
warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified
--> bin/nanocld/src/objects/generic/mod.rs:22:3
|
22 | async fn fn_action(
| ^^^^^
|
= note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future`
= note: `#[warn(async_fn_in_trait)]` on by default
help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change
|
22 ~ fn fn_action(
23 | &self,
24 | state: &SystemState,
25 ~ ) -> impl std::future::Future<Output = HttpResult<Self::StateActionOut>> + Send;
|
|