File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ extern crate unicode_bidi;
38
38
extern crate unicode_normalization;
39
39
40
40
pub mod punycode;
41
- pub mod uts46;
41
+ mod uts46;
42
+
43
+ pub use uts46:: { Config , Errors } ;
42
44
43
45
/// The [domain to ASCII](https://url.spec.whatwg.org/#concept-domain-to-ascii) algorithm.
44
46
///
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use unicode_normalization::UnicodeNormalization;
18
18
19
19
include ! ( "uts46_mapping_table.rs" ) ;
20
20
21
- pub static PUNYCODE_PREFIX : & ' static str = "xn--" ;
21
+ const PUNYCODE_PREFIX : & ' static str = "xn--" ;
22
22
23
23
#[ derive( Debug ) ]
24
24
struct StringTableSlice {
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ impl fmt::Display for ParseError {
67
67
}
68
68
}
69
69
70
- impl From < :: idna:: uts46 :: Errors > for ParseError {
71
- fn from ( _: :: idna:: uts46 :: Errors ) -> ParseError {
70
+ impl From < :: idna:: Errors > for ParseError {
71
+ fn from ( _: :: idna:: Errors ) -> ParseError {
72
72
ParseError :: IdnaError
73
73
}
74
74
}
You can’t perform that action at this time.
0 commit comments