@@ -72,20 +72,6 @@ impl AsRef<str> for DnsNameRef<'_> {
72
72
}
73
73
}
74
74
75
- /// An error indicating that a `DnsNameRef` could not built because the input
76
- /// is not a syntactically-valid DNS Name.
77
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
78
- pub struct InvalidDnsNameError ;
79
-
80
- impl core:: fmt:: Display for InvalidDnsNameError {
81
- fn fmt ( & self , f : & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
82
- write ! ( f, "{:?}" , self )
83
- }
84
- }
85
-
86
- #[ cfg( feature = "std" ) ]
87
- impl :: std:: error:: Error for InvalidDnsNameError { }
88
-
89
75
impl < ' a > DnsNameRef < ' a > {
90
76
/// Constructs a `DnsNameRef` from the given input if the input is a
91
77
/// syntactically-valid DNS name.
@@ -228,6 +214,20 @@ impl AsRef<str> for WildcardDnsNameRef<'_> {
228
214
}
229
215
}
230
216
217
+ /// An error indicating that a `DnsNameRef` could not built because the input
218
+ /// is not a syntactically-valid DNS Name.
219
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
220
+ pub struct InvalidDnsNameError ;
221
+
222
+ impl core:: fmt:: Display for InvalidDnsNameError {
223
+ fn fmt ( & self , f : & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
224
+ write ! ( f, "{:?}" , self )
225
+ }
226
+ }
227
+
228
+ #[ cfg( feature = "std" ) ]
229
+ impl :: std:: error:: Error for InvalidDnsNameError { }
230
+
231
231
pub ( super ) fn presented_id_matches_reference_id (
232
232
presented_dns_id : untrusted:: Input ,
233
233
reference_dns_id : untrusted:: Input ,
0 commit comments