Skip to content

src: stream: Update to work with Stream async API #57

src: stream: Update to work with Stream async API

src: stream: Update to work with Stream async API #57

GitHub Actions / clippy succeeded Apr 26, 2024 in 0s

clippy

3 warnings

Details

Results

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

Versions

  • rustc 1.77.2 (25ef9e3d8 2024-04-09)
  • cargo 1.77.2 (e52e36006 2024-03-26)
  • clippy 0.1.77 (25ef9e3 2024-04-09)

Annotations

Check warning on line 84 in src/video/video_source.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting to the same type is unnecessary (`i64` -> `i64`)

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

Check warning on line 32 in src/server/manager.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this async expression only awaits a single future

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

Check warning on line 10 in src/custom/test.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `format!`

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