Skip to content

Commit 1681948

Browse files
authored
RUST-295 Rename ErrorKind::DnsName (#126)
1 parent 8970847 commit 1681948

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,16 @@ pub enum ErrorKind {
106106
#[error(display = "Command failed {}", _0)]
107107
CommandError(CommandError),
108108

109-
/// Wrapper around `webpki::InvalidDNSNameError`.
110-
#[error(display = "{}", _0)]
111-
DnsName(#[error(source)] webpki::InvalidDNSNameError),
112-
113109
// `trust_dns` does not implement the `Error` trait on their errors, so we have to manually
114110
// implement `From` rather than using the `source annotation.
115111
/// Wrapper around `trust_dns_resolver::error::ResolveError`.
116112
#[error(display = "{}", _0)]
117113
DnsResolve(trust_dns_resolver::error::ResolveError),
118114

115+
/// Wrapper around `webpki::InvalidDNSNameError`.
116+
#[error(display = "{}", _0)]
117+
InvalidDnsName(#[error(source)] webpki::InvalidDNSNameError),
118+
119119
/// A hostname could not be parsed.
120120
#[error(display = "Unable to parse hostname: {}", hostname)]
121121
InvalidHostname { hostname: String },

0 commit comments

Comments
 (0)