Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
0x676e67 committed Feb 9, 2025
1 parent b4d0295 commit d58880e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tls/cert/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl RootCertStore {
C: IntoIterator,
C::Item: AsRef<[u8]>,
{
Self::load_certs_from_iter(certs.into_iter(), X509::from_der)
Self::load_certs_from_iter(certs, X509::from_der)
}

/// Creates a new `RootCertStore` from a collection of PEM-encoded certificates.
Expand All @@ -52,7 +52,7 @@ impl RootCertStore {
C: IntoIterator,
C::Item: AsRef<[u8]>,
{
Self::load_certs_from_iter(certs.into_iter(), X509::from_pem)
Self::load_certs_from_iter(certs, X509::from_pem)
}

/// Creates a new `RootCertStore` from a PEM-encoded certificate file.
Expand Down

0 comments on commit d58880e

Please sign in to comment.