solokeys / solo2-cli

Solo 2 library and CLI in Rust
https://docs.rs/solo2
Apache License 2.0
169 stars 31 forks source link

solo2-cli 0.2.2 failed to build against rust 1.79.0 #121

Open chenrui333 opened 3 weeks ago

chenrui333 commented 3 weeks ago

while trying to upgrade rust to 1.79.0, seeing some build failure as below:

error: unnecessary qualification
  --> src/pki/dev.rs:47:19
   |
47 |     let key_info: p256::pkcs8::PrivateKeyInfo = key_pkcs8.as_slice().try_into().unwrap();
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> src/lib.rs:1:34
   |
1  | #![deny(warnings, trivial_casts, unused_qualifications)]
   |                                  ^^^^^^^^^^^^^^^^^^^^^
help: remove the unnecessary path segments
   |
47 -     let key_info: p256::pkcs8::PrivateKeyInfo = key_pkcs8.as_slice().try_into().unwrap();
47 +     let key_info: pkcs8::PrivateKeyInfo = key_pkcs8.as_slice().try_into().unwrap();
   |

error: could not compile `solo2` (lib) due to 1 previous error

relates to https://github.com/Homebrew/homebrew-core/pull/174480