feat: Adding cli support for wasi-http #37
GitHub Actions / clippy
succeeded
May 22, 2024 in 1s
clippy
2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 2 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.78.0 (9b00956e5 2024-04-29)
- cargo 1.78.0 (54d8815d0 2024-03-26)
- clippy 0.1.78 (9b00956 2024-04-29)
Annotations
Check warning on line 161 in crates/http-service/src/executor/mod.rs
github-actions / clippy
redundant closure
warning: redundant closure
--> crates/http-service/src/executor/mod.rs:161:34
|
161 | let body = resp.body.map(|b| Full::from(b)).unwrap_or_default();
| ^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Full::from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[warn(clippy::redundant_closure)]` on by default
Check warning on line 188 in crates/http-service/src/lib.rs
github-actions / clippy
method `serve_tls` is never used
warning: method `serve_tls` is never used
--> crates/http-service/src/lib.rs:188:14
|
152 | / impl<T> HttpService<T>
153 | | where
154 | | T: ContextT
155 | | + StatsWriter
... |
162 | | T::BackendConnector: Clone + Send + Sync + 'static,
163 | | T::Executor: HttpExecutor + Send + Sync,
| |____________________________________________- method in this implementation
...
188 | async fn serve_tls(self, _listen_addr: SocketAddr, _tls: Arc<ServerConfig>) -> Result<()> {
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
Loading