Skip to content
Snippets Groups Projects
Commit 1c87efd2 authored by Jean-Michel Picod's avatar Jean-Michel Picod
Browse files

Fix clippy warnings.

Because of libtock-rs we can't run clippy on our codebase. But it could
run at least on `build.rs`.
parent e61e4782
No related branches found
No related tags found
No related merge requests found
......@@ -35,9 +35,8 @@ fn main() {
// Load the OpenSSL PEM ECC key
let ecc_data = include_bytes!("crypto_data/opensk.key");
let pkey = ec::EcKey::private_key_from_pem(ecc_data)
.ok()
.expect("Failed to load OpenSK private key file");
let pkey =
ec::EcKey::private_key_from_pem(ecc_data).expect("Failed to load OpenSK private key file");
// Check key validity
pkey.check_key().unwrap();
......@@ -70,9 +69,7 @@ fn main() {
// Convert the PEM certificate to DER and extract the serial for AAGUID
let input_pem_cert = include_bytes!("crypto_data/opensk_cert.pem");
let cert = x509::X509::from_pem(input_pem_cert)
.ok()
.expect("Failed to load OpenSK certificate");
let cert = x509::X509::from_pem(input_pem_cert).expect("Failed to load OpenSK certificate");
// Do some sanity check on the certificate
assert!(cert
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment