Skip to content

Commit

Permalink
pd: 📎 address redundant_static_lifetimes lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cratelyn authored and conorsch committed Jan 26, 2024
1 parent 3ba08d1 commit 3c320ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bin/pd/src/auto_https.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit 3c320ac

Please sign in to comment.