Skip to content

Releases: add fedora 39 build #347

Releases: add fedora 39 build

Releases: add fedora 39 build #347

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

clippy

4 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 4
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 36 in pkcs11/src/config/device.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

error: accessing first element with `self.instances.get(0)`
  --> pkcs11/src/config/device.rs:35:9
   |
35 | /         self.instances
36 | |             .get(0)
   | |___________________^ help: try: `self.instances.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 78 in pkcs11/src/backend/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variant name ends with the enum's name

error: variant name ends with the enum's name
  --> pkcs11/src/backend/mod.rs:78:5
   |
78 |     Base64Error(base64ct::Error),
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
   = note: `-D clippy::enum-variant-names` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::enum_variant_names)]`

Check failure on line 36 in pkcs11/src/config/device.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

error: accessing first element with `self.instances.get(0)`
  --> pkcs11/src/config/device.rs:35:9
   |
35 | /         self.instances
36 | |             .get(0)
   | |___________________^ help: try: `self.instances.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 78 in pkcs11/src/backend/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variant name ends with the enum's name

error: variant name ends with the enum's name
  --> pkcs11/src/backend/mod.rs:78:5
   |
78 |     Base64Error(base64ct::Error),
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
   = note: `-D clippy::enum-variant-names` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::enum_variant_names)]`