mirror of
https://github.com/instant-labs/instant-acme.git
synced 2025-02-02 06:22:12 +00:00
Make LetsEncrypt::url() const
This commit is contained in:
parent
895d580ece
commit
1cf7c81f6b
@ -284,7 +284,7 @@ pub enum LetsEncrypt {
|
||||
}
|
||||
|
||||
impl LetsEncrypt {
|
||||
pub fn url(&self) -> &'static str {
|
||||
pub const fn url(&self) -> &'static str {
|
||||
match self {
|
||||
LetsEncrypt::Production => "https://acme-v02.api.letsencrypt.org/directory",
|
||||
LetsEncrypt::Staging => "https://acme-staging-v02.api.letsencrypt.org/directory",
|
||||
|
Loading…
Reference in New Issue
Block a user