@@ -2120,12 +2120,12 @@ mod normalization {
2120
2120
fn utf8_0xc2 ( ) {
2121
2121
// All possible characters encoded in 2 bytes in UTF-8 which first byte is 0xC2 (0b11000010)
2122
2122
// Second byte follows the pattern 10xxxxxx
2123
- let first = str:: from_utf8 ( & [ 0b11000010 , 0b10000000 ] )
2123
+ let first = std :: str:: from_utf8 ( & [ 0b11000010 , 0b10000000 ] )
2124
2124
. unwrap ( )
2125
2125
. chars ( )
2126
2126
. next ( )
2127
2127
. unwrap ( ) ;
2128
- let last = str:: from_utf8 ( & [ 0b11000010 , 0b10111111 ] )
2128
+ let last = std :: str:: from_utf8 ( & [ 0b11000010 , 0b10111111 ] )
2129
2129
. unwrap ( )
2130
2130
. chars ( )
2131
2131
. next ( )
@@ -2134,7 +2134,7 @@ mod normalization {
2134
2134
for ch in first..=last {
2135
2135
ch. encode_utf8 ( & mut utf8) ;
2136
2136
let description = format ! ( "UTF-8 [{:02x} {:02x}] = `{}`" , utf8[ 0 ] , utf8[ 1 ] , ch) ;
2137
- let input = str:: from_utf8 ( & utf8) . expect ( & description) ;
2137
+ let input = std :: str:: from_utf8 ( & utf8) . expect ( & description) ;
2138
2138
2139
2139
dbg ! ( ( input, & description) ) ;
2140
2140
if ch == '\u{0085}' {
@@ -2150,12 +2150,12 @@ mod normalization {
2150
2150
fn utf8_0x0d_0xc2 ( ) {
2151
2151
// All possible characters encoded in 2 bytes in UTF-8 which first byte is 0xC2 (0b11000010)
2152
2152
// Second byte follows the pattern 10xxxxxx
2153
- let first = str:: from_utf8 ( & [ 0b11000010 , 0b10000000 ] )
2153
+ let first = std :: str:: from_utf8 ( & [ 0b11000010 , 0b10000000 ] )
2154
2154
. unwrap ( )
2155
2155
. chars ( )
2156
2156
. next ( )
2157
2157
. unwrap ( ) ;
2158
- let last = str:: from_utf8 ( & [ 0b11000010 , 0b10111111 ] )
2158
+ let last = std :: str:: from_utf8 ( & [ 0b11000010 , 0b10111111 ] )
2159
2159
. unwrap ( )
2160
2160
. chars ( )
2161
2161
. next ( )
@@ -2167,7 +2167,7 @@ mod normalization {
2167
2167
"UTF-8 [{:02x} {:02x} {:02x}] = `{}`" ,
2168
2168
utf8[ 0 ] , utf8[ 1 ] , utf8[ 2 ] , ch
2169
2169
) ;
2170
- let input = str:: from_utf8 ( & utf8) . expect ( & description) ;
2170
+ let input = std :: str:: from_utf8 ( & utf8) . expect ( & description) ;
2171
2171
2172
2172
dbg ! ( ( input, & description) ) ;
2173
2173
if ch == '\u{0085}' {
@@ -2183,12 +2183,12 @@ mod normalization {
2183
2183
fn utf8_0xe2 ( ) {
2184
2184
// All possible characters encoded in 3 bytes in UTF-8 which first byte is 0xE2 (0b11100010)
2185
2185
// Second and third bytes follows the pattern 10xxxxxx
2186
- let first = str:: from_utf8 ( & [ 0b11100010 , 0b10000000 , 0b10000000 ] )
2186
+ let first = std :: str:: from_utf8 ( & [ 0b11100010 , 0b10000000 , 0b10000000 ] )
2187
2187
. unwrap ( )
2188
2188
. chars ( )
2189
2189
. next ( )
2190
2190
. unwrap ( ) ;
2191
- let last = str:: from_utf8 ( & [ 0b11100010 , 0b10111111 , 0b10111111 ] )
2191
+ let last = std :: str:: from_utf8 ( & [ 0b11100010 , 0b10111111 , 0b10111111 ] )
2192
2192
. unwrap ( )
2193
2193
. chars ( )
2194
2194
. next ( )
0 commit comments