price-reporter: Make misc reliability improvements #178
GitHub Actions / clippy
failed
Sep 4, 2024 in 1s
clippy
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.78.0-nightly (3cbb93223 2024-03-13)
- cargo 1.78.0-nightly (7065f0ef4 2024-03-12)
- clippy 0.1.78 (3cbb932 2024-03-13)
Annotations
Check failure on line 145 in price-reporter/src/main.rs
github-actions / clippy
unused `async` for function with no await statements
error: unused `async` for function with no await statements
--> price-reporter/src/main.rs:127:1
|
127 | / async fn init_price_stream(
128 | | base_token: Token,
129 | | quote_token: Token,
130 | | exchange: Exchange,
... |
144 | | Ok(())
145 | | }
| |_^
|
= help: consider removing the `async` from this function
note: `await` used in an async block, which does not require the enclosing function to be `async`
--> price-reporter/src/main.rs:137:95
|
137 | if let Err(e) = streams.get_or_create_price_stream(pair_info.clone(), config.clone()).await
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
= note: requested on the command line with `-D clippy::unused-async`
Loading