Use 'Self' instead of 'LetsEncrypt' in pattern matching

This commit is contained in:
Deftware 2024-01-22 13:57:21 +01:00 committed by Dirkjan Ochtman
parent 9c96fb26a4
commit 287fa2469f
1 changed files with 2 additions and 2 deletions

View File

@ -422,8 +422,8 @@ impl LetsEncrypt {
/// Get the directory URL for the given Let's Encrypt server
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",
Self::Production => "https://acme-v02.api.letsencrypt.org/directory",
Self::Staging => "https://acme-staging-v02.api.letsencrypt.org/directory",
}
}
}