Skip to content

Update trussed

Update trussed #74

GitHub Actions / clippy succeeded Mar 4, 2024 in 0s

clippy

7 warnings

Details

Results

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

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check warning on line 77 in src/lib/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variant name ends with the enum's name

warning: variant name ends with the enum's name
  --> src/lib/types.rs:77:5
   |
77 |     InternalError = 0xFA,
   |     ^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
   = note: `#[warn(clippy::enum_variant_names)]` on by default

Check warning on line 380 in src/lib/transport.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of a fallible conversion when an infallible one could be used

warning: use of a fallible conversion when an infallible one could be used
   --> src/lib/transport.rs:380:46
    |
380 |         let webcrypt: WebcryptRequest = keyh.try_into().map_err(|_| Error::BadFormat)?;
    |                                              ^^^^^^^^ help: use: `into`
    |
    = note: converting `&[u8]` to `WebcryptRequest` cannot fail
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions

Check warning on line 216 in src/lib/ctap_app.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of a fallible conversion when an infallible one could be used

warning: use of a fallible conversion when an infallible one could be used
   --> src/lib/ctap_app.rs:216:50
    |
216 |                     display_name: Some("display".try_into().unwrap()),
    |                                                  ^^^^^^^^^^^^^^^^^^^ help: use: `into()`
    |
    = note: converting `&str` to `String<64>` cannot fail
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions

Check warning on line 215 in src/lib/ctap_app.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of a fallible conversion when an infallible one could be used

warning: use of a fallible conversion when an infallible one could be used
   --> src/lib/ctap_app.rs:215:39
    |
215 |                     name: Some("name".try_into().unwrap()),
    |                                       ^^^^^^^^^^^^^^^^^^^ help: use: `into()`
    |
    = note: converting `&str` to `String<64>` cannot fail
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions

Check warning on line 1160 in src/lib/commands.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of a fallible conversion when an infallible one could be used

warning: use of a fallible conversion when an infallible one could be used
    --> src/lib/commands.rs:1160:26
     |
1160 |             .map(|entry| PathBuf::try_from(entry.path()).unwrap());
     |                          ^^^^^^^^^^^^^^^^^ help: use: `From::from`
     |
     = note: converting `&Path` to `PathBuf` cannot fail
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions

Check warning on line 1151 in src/lib/commands.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of a fallible conversion when an infallible one could be used

warning: use of a fallible conversion when an infallible one could be used
    --> src/lib/commands.rs:1151:22
     |
1151 |         .map(|entry| PathBuf::try_from(entry.path()).unwrap());
     |                      ^^^^^^^^^^^^^^^^^ help: use: `From::from`
     |
     = note: converting `&Path` to `PathBuf` cannot fail
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
     = note: `#[warn(clippy::unnecessary_fallible_conversions)]` on by default

Check warning on line 2 in src/lib/commands.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `ctap_types::ctap1::Error as U2fError`

warning: unused import: `ctap_types::ctap1::Error as U2fError`
 --> src/lib/commands.rs:2:9
  |
2 | pub use ctap_types::ctap1::Error as U2fError;
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default