Skip to content

Merge pull request #81 from straithe/addDocumentationSetup #259

Merge pull request #81 from straithe/addDocumentationSetup

Merge pull request #81 from straithe/addDocumentationSetup #259

GitHub Actions / clippy failed Jan 8, 2024 in 0s

clippy

3 errors

Details

Results

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

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check failure on line 184 in src/ui.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

accessing first element with `self.dev_speeds.get(0)`

error: accessing first element with `self.dev_speeds.get(0)`
   --> src/ui.rs:184:29
    |
184 |         let speed_strings = self.dev_speeds.get(0).unwrap_or(&no_speeds);
    |                             ^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.dev_speeds.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
    = note: `-D clippy::get-first` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::get_first)]`

Check failure on line 914 in src/usb.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused imports: `InterfaceDescriptor`, `Speed`

error: unused imports: `InterfaceDescriptor`, `Speed`
   --> src/usb.rs:914:9
    |
914 |         Speed,
    |         ^^^^^
...
923 |         InterfaceDescriptor,
    |         ^^^^^^^^^^^^^^^^^^^

Check failure on line 1710 in src/capture.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused imports: `CaptureReader`, `EndpointReader`, `create_capture`

error: unused imports: `CaptureReader`, `EndpointReader`, `create_capture`
    --> src/capture.rs:1710:9
     |
1710 |         create_capture,
     |         ^^^^^^^^^^^^^^
1711 |         create_endpoint,
1712 |         CaptureReader,
     |         ^^^^^^^^^^^^^
...
1722 |         EndpointReader,
     |         ^^^^^^^^^^^^^^
     |
     = note: `-D unused-imports` implied by `-D warnings`
     = help: to override `-D warnings` add `#[allow(unused_imports)]`