We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54b8b1e commit 0cf3cbfCopy full SHA for 0cf3cbf
examples/connect/mod.rs
@@ -53,10 +53,7 @@ pub async fn make_and_write_certs() -> Result<(
53
.await
54
.context("failed to write private key")?;
55
56
- Ok((
57
- rustls::pki_types::PrivateKeyDer::try_from(key).unwrap(),
58
- rustls::pki_types::CertificateDer::from(cert),
59
- ))
+ Ok((rustls::pki_types::PrivateKeyDer::from(key), cert))
60
}
61
62
// derived from `quinn/examples/client.rs`
0 commit comments