File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments