v0.4.0 #95
clippy
2 errors, 2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 2 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.78.0 (9b00956e5 2024-04-29)
- cargo 1.78.0 (54d8815d0 2024-03-26)
- clippy 0.1.78 (9b00956 2024-04-29)
Annotations
Check failure on line 50 in src/dkim/generate.rs
github-actions / clippy
no function or associated item named `from_pkcs8_der` found for struct `common::crypto::rust_crypto::Ed25519Key` in the current scope
error[E0599]: no function or associated item named `from_pkcs8_der` found for struct `common::crypto::rust_crypto::Ed25519Key` in the current scope
--> src/dkim/generate.rs:50:31
|
50 | let key = Ed25519Key::from_pkcs8_der(&pkcs8_der).unwrap();
| ^^^^^^^^^^^^^^ function or associated item not found in `Ed25519Key`
|
::: src/common/crypto/rust_crypto.rs:82:1
|
82 | pub struct Ed25519Key {
| --------------------- function or associated item `from_pkcs8_der` not found for this struct
|
note: if you're trying to build a new `common::crypto::rust_crypto::Ed25519Key`, consider using `common::crypto::rust_crypto::Ed25519Key::from_bytes` which returns `std::result::Result<common::crypto::rust_crypto::Ed25519Key, Error>`
--> src/common/crypto/rust_crypto.rs:88:5
|
88 | pub fn from_bytes(private_key_bytes: &[u8]) -> crate::Result<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `from_pkcs8_der`, perhaps you need to implement it:
candidate #1: `rsa::pkcs8::DecodePrivateKey`
Check failure on line 49 in src/dkim/generate.rs
github-actions / clippy
no function or associated item named `generate_pkcs8` found for struct `common::crypto::rust_crypto::Ed25519Key` in the current scope
error[E0599]: no function or associated item named `generate_pkcs8` found for struct `common::crypto::rust_crypto::Ed25519Key` in the current scope
--> src/dkim/generate.rs:49:25
|
49 | Ed25519Key::generate_pkcs8().map_err(|err| Error::CryptoError(err.to_string()))?;
| ^^^^^^^^^^^^^^ function or associated item not found in `Ed25519Key`
|
::: src/common/crypto/rust_crypto.rs:82:1
|
82 | pub struct Ed25519Key {
| --------------------- function or associated item `generate_pkcs8` not found for this struct
|
note: if you're trying to build a new `common::crypto::rust_crypto::Ed25519Key`, consider using `common::crypto::rust_crypto::Ed25519Key::from_bytes` which returns `std::result::Result<common::crypto::rust_crypto::Ed25519Key, Error>`
--> src/common/crypto/rust_crypto.rs:88:5
|
88 | pub fn from_bytes(private_key_bytes: &[u8]) -> crate::Result<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 40 in src/common/lru.rs
github-actions / clippy
bound is defined in more than one place
warning: bound is defined in more than one place
--> src/common/lru.rs:40:12
|
40 | fn get<Q: ?Sized>(&self, name: &Q) -> Option<V>
| ^
...
43 | Q: Hash + Eq,
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
Check warning on line 25 in src/common/lru.rs
github-actions / clippy
bound is defined in more than one place
warning: bound is defined in more than one place
--> src/common/lru.rs:25:12
|
25 | fn get<Q: ?Sized>(&self, name: &Q) -> Option<V>
| ^
...
28 | Q: Hash + Eq;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
= note: `#[warn(clippy::multiple_bound_locations)]` on by default