From 1716885392b28b7610413625ef4b136dcd2bae51 Mon Sep 17 00:00:00 2001 From: katelyn martin Date: Thu, 25 Jan 2024 16:56:21 -0500 Subject: [PATCH] =?UTF-8?q?pd:=20=F0=9F=93=8E=20address=20redundant=5Fstat?= =?UTF-8?q?ic=5Flifetimes=20lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/bin/pd/src/auto_https.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bin/pd/src/auto_https.rs b/crates/bin/pd/src/auto_https.rs index ce531ae25b..f5412ace93 100644 --- a/crates/bin/pd/src/auto_https.rs +++ b/crates/bin/pd/src/auto_https.rs @@ -17,11 +17,11 @@ use { /// [rfc7301]: https://datatracker.ietf.org/doc/html/rfc7301 // // We also permit HTTP1.1 for backwards-compatibility, specifically for grpc-web. -const ALPN_PROTOCOLS: [&'static [u8]; 2] = [b"h2", b"http/1.1"]; +const ALPN_PROTOCOLS: [&[u8]; 2] = [b"h2", b"http/1.1"]; /// The location of the file-based certificate cache. // NB: this must not be an absolute path see [Path::join]. -const CACHE_DIR: &'static str = "tokio_rustls_acme_cache"; +const CACHE_DIR: &str = "tokio_rustls_acme_cache"; /// If true, use the production Let's Encrypt environment. ///