feat(http): support websocket server #821
clippy
3 errors, 1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 3 |
Warning | 1 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.82.0-nightly (60d146580 2024-08-06)
- cargo 1.82.0-nightly (fa6465836 2024-08-02)
- clippy 0.1.82 (60d1465 2024-08-06)
Annotations
Check failure on line 213 in volo-http/src/server/utils/ws.rs
github-actions / clippy
conflicting implementations of trait `server::utils::ws::Callback` for type `server::utils::ws::DefaultCallback`
error[E0119]: conflicting implementations of trait `server::utils::ws::Callback` for type `server::utils::ws::DefaultCallback`
--> volo-http/src/server/utils/ws.rs:213:1
|
168 | / impl<Fut, C> Callback for C
169 | | where
170 | | Fut: Future<Output = ()> + Send + 'static,
171 | | C: FnOnce(WebSocket) -> Fut + Send + 'static,
172 | | C: Copy,
| |____________- first implementation here
...
213 | impl Callback for DefaultCallback {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `server::utils::ws::DefaultCallback`
Check warning on line 62 in benchmark/src/perf/mem.rs
github-actions / clippy
casting to the same type is unnecessary (`u64` -> `u64`)
warning: casting to the same type is unnecessary (`u64` -> `u64`)
--> benchmark/src/perf/mem.rs:62:41
|
62 | mem_usage_list.push(mem_usage as u64);
| ^^^^^^^^^^^^^^^^ help: try: `mem_usage`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
Check failure on line 47 in volo-http/src/server/utils/ws.rs
github-actions / clippy
unresolved import `tokio_tungstenite`
error[E0432]: unresolved import `tokio_tungstenite`
--> volo-http/src/server/utils/ws.rs:47:5
|
47 | use tokio_tungstenite::{
| ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `tokio_tungstenite`
Check failure on line 47 in volo-http/src/server/utils/ws.rs
github-actions / clippy
failed to resolve: use of undeclared crate or module `tokio_tungstenite`
error[E0433]: failed to resolve: use of undeclared crate or module `tokio_tungstenite`
--> volo-http/src/server/utils/ws.rs:47:5
|
47 | use tokio_tungstenite::{
| ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `tokio_tungstenite`