mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-22 11:13:44 +00:00
Remove unintentional, obfuscatory use of Result::into_iter
This commit is contained in:
committed by
Dirkjan Ochtman
parent
68bd25d407
commit
14813d33c2
@@ -87,7 +87,9 @@ async fn run(options: Opt) -> Result<()> {
|
||||
};
|
||||
let cert_chain = fs::read(cert_path).context("failed to read certificate chain")?;
|
||||
let cert_chain = if cert_path.extension().map_or(false, |x| x == "der") {
|
||||
quinn::CertificateChain::from_certs(quinn::Certificate::from_der(&cert_chain))
|
||||
quinn::CertificateChain::from_certs(Some(
|
||||
quinn::Certificate::from_der(&cert_chain).unwrap(),
|
||||
))
|
||||
} else {
|
||||
quinn::CertificateChain::from_pem(&cert_chain)?
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user