chore: fix clippy

Pull-Request: #4267.
This commit is contained in:
João Oliveira
2023-07-31 06:53:53 +01:00
committed by GitHub
parent 5499333ff3
commit ceccb8e9c0
3 changed files with 206 additions and 278 deletions

478
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -758,10 +758,6 @@ impl From<rsa::PublicKey> for PublicKey {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
#[cfg(feature = "peerid")]
use crate::PeerId;
use base64::prelude::*;
use std::str::FromStr;
#[test] #[test]
#[cfg(feature = "ed25519")] #[cfg(feature = "ed25519")]

View File

@@ -54,7 +54,7 @@ pub fn make_client_config(
.with_custom_certificate_verifier(Arc::new( .with_custom_certificate_verifier(Arc::new(
verifier::Libp2pCertificateVerifier::with_remote_peer_id(remote_peer_id), verifier::Libp2pCertificateVerifier::with_remote_peer_id(remote_peer_id),
)) ))
.with_single_cert(vec![certificate], private_key) .with_client_auth_cert(vec![certificate], private_key)
.expect("Client cert key DER is valid; qed"); .expect("Client cert key DER is valid; qed");
crypto.alpn_protocols = vec![P2P_ALPN.to_vec()]; crypto.alpn_protocols = vec![P2P_ALPN.to_vec()];