Make LetsEncrypt::url() const
This commit is contained in:
parent
895d580ece
commit
1cf7c81f6b
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue