Skip to content

Add io::WebcamCapture via gstreamer #85

Add io::WebcamCapture via gstreamer

Add io::WebcamCapture via gstreamer #85

GitHub Actions / Clippy Output succeeded Mar 27, 2024 in 0s

Clippy Output

2 warnings

Details

Results

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

Versions

  • rustc 1.77.0 (aedd173a2 2024-03-17)
  • cargo 1.77.0 (3fe68eabf 2024-02-29)

Annotations

Check warning on line 14 in src/io/fps_counter.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

you should consider adding a `Default` implementation for `FpsCounter`

warning: you should consider adding a `Default` implementation for `FpsCounter`
  --> src/io/fps_counter.rs:9:5
   |
9  | /     pub fn new() -> Self {
10 | |         Self {
11 | |             last_time: Instant::now(),
12 | |             frame_count: 0,
13 | |         }
14 | |     }
   | |_____^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
   = note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
   |
8  + impl Default for FpsCounter {
9  +     fn default() -> Self {
10 +         Self::new()
11 +     }
12 + }
   |

Check warning on line 92 in src/io/webcam.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

field `handle` is never read

warning: field `handle` is never read
  --> src/io/webcam.rs:92:5
   |
89 | pub struct WebcamCapture {
   |            ------------- field in this struct
...
92 |     handle: Option<std::thread::JoinHandle<()>>,
   |     ^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default