Skip to content

wip action

wip action #3978

GitHub Actions / clippy succeeded Jan 14, 2024 in 1s

clippy

1 warning

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 1
Note 0
Help 0

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check warning on line 22 in bin/nanocld/src/objects/generic/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified

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;
   |