Browse Source

Remove the useless `let` bindings

pull/76/head
Rodolphe Bréard 2 years ago
parent
commit
717757c8e7
  1. 2
      acme_common/src/crypto/openssl_keys.rs
  2. 2
      acmed/src/acme_proto.rs

2
acme_common/src/crypto/openssl_keys.rs

@ -99,7 +99,7 @@ impl KeyPair {
}
pub fn sign(&self, alg: &JwsSignatureAlgorithm, data: &[u8]) -> Result<Vec<u8>, Error> {
let _ = self.key_type.check_alg_compatibility(alg)?;
self.key_type.check_alg_compatibility(alg)?;
match alg {
JwsSignatureAlgorithm::Hs256
| JwsSignatureAlgorithm::Hs384

2
acmed/src/acme_proto.rs

@ -157,7 +157,7 @@ pub fn request_certificate(
// Tell the server the challenge has been completed
let chall_url = challenge.get_url();
let data_builder = set_data_builder!(account, endpoint_name, b"{}");
let _ = http::post_jose_no_response(endpoint, &data_builder, &chall_url)
http::post_jose_no_response(endpoint, &data_builder, &chall_url)
.map_err(HttpError::in_err)?;
}
}

Loading…
Cancel
Save