Make LetsEncrypt::url() const

This commit is contained in:
Dirkjan Ochtman 2022-05-12 10:36:04 +02:00
parent 895d580ece
commit 1cf7c81f6b
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ pub enum LetsEncrypt {
} }
impl LetsEncrypt { impl LetsEncrypt {
pub fn url(&self) -> &'static str { pub const fn url(&self) -> &'static str {
match self { match self {
LetsEncrypt::Production => "https://acme-v02.api.letsencrypt.org/directory", LetsEncrypt::Production => "https://acme-v02.api.letsencrypt.org/directory",
LetsEncrypt::Staging => "https://acme-staging-v02.api.letsencrypt.org/directory", LetsEncrypt::Staging => "https://acme-staging-v02.api.letsencrypt.org/directory",