Skip to content

Commit 29e8785

Browse files
committed
Clippy
1 parent 61428c0 commit 29e8785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl ProxyServer {
218218
attestation_generator: AttestationGenerator,
219219
attestation_verifier: AttestationVerifier,
220220
) -> Result<Self, ProxyError> {
221-
for protocol in vec![ALPN_H2, ALPN_HTTP11] {
221+
for protocol in [ALPN_H2, ALPN_HTTP11] {
222222
let already_present = server_config
223223
.alpn_protocols
224224
.iter()
@@ -460,7 +460,7 @@ impl ProxyClient {
460460
attestation_verifier: AttestationVerifier,
461461
cert_chain: Option<Vec<CertificateDer<'static>>>,
462462
) -> Result<Self, ProxyError> {
463-
for protocol in vec![ALPN_H2, ALPN_HTTP11] {
463+
for protocol in [ALPN_H2, ALPN_HTTP11] {
464464
let already_present = client_config
465465
.alpn_protocols
466466
.iter()

0 commit comments

Comments
 (0)