Skip to content

Commit

Permalink
Use 'Self' instead of 'LetsEncrypt' in pattern matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Moudoux authored and djc committed Jan 22, 2024
1 parent 9c96fb2 commit 287fa24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
}
}
Expand Down

0 comments on commit 287fa24

Please sign in to comment.