src: stream: Update to work with Stream async API #57
test_webrtc_leak.yml
on: push
test-webrtc-thread-leak
8m 41s
Annotations
1 error and 8 warnings
test-webrtc-thread-leak
Process completed with exit code 1.
|
casting to the same type is unnecessary (`i64` -> `i64`):
src/video/video_source.rs#L84
warning: casting to the same type is unnecessary (`i64` -> `i64`)
--> src/video/video_source.rs:84:44
|
84 | .set_control_by_id(control.id, default_value as i64)
| ^^^^^^^^^^^^^^^^^^^^ help: try: `default_value`
|
= 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
|
this async expression only awaits a single future:
src/server/manager.rs#L32
warning: this async expression only awaits a single future
--> src/server/manager.rs:32:17
|
32 | async { fut.await }
| ^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `fut`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_async_block
= note: `#[warn(clippy::redundant_async_block)]` on by default
|
useless use of `format!`:
src/custom/test.rs#L10
warning: useless use of `format!`
--> src/custom/test.rs:10:15
|
10 | name: format!("WebRTC fake stream for thread leak"),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"WebRTC fake stream for thread leak".to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `#[warn(clippy::useless_format)]` on by default
|
test-webrtc-thread-leak
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
test-webrtc-thread-leak
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
casting to the same type is unnecessary (`i64` -> `i64`):
src/video/video_source.rs#L84
warning: casting to the same type is unnecessary (`i64` -> `i64`)
--> src/video/video_source.rs:84:44
|
84 | .set_control_by_id(control.id, default_value as i64)
| ^^^^^^^^^^^^^^^^^^^^ help: try: `default_value`
|
= 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
|
this async expression only awaits a single future:
src/server/manager.rs#L32
warning: this async expression only awaits a single future
--> src/server/manager.rs:32:17
|
32 | async { fut.await }
| ^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `fut`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_async_block
= note: `#[warn(clippy::redundant_async_block)]` on by default
|
useless use of `format!`:
src/custom/test.rs#L10
warning: useless use of `format!`
--> src/custom/test.rs:10:15
|
10 | name: format!("WebRTC fake stream for thread leak"),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"WebRTC fake stream for thread leak".to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `#[warn(clippy::useless_format)]` on by default
|