@@ -1051,7 +1051,7 @@ mod tests {
10511051 de. write,
10521052 vec![
10531053 Start ( BytesStart :: new( "inner" ) ) ,
1054- Text ( BytesText :: from_escaped_str ( "text" ) ) ,
1054+ Text ( BytesText :: from_escaped ( "text" ) ) ,
10551055 Start ( BytesStart :: new( "inner" ) ) ,
10561056 End ( BytesEnd :: new( "inner" ) ) ,
10571057 End ( BytesEnd :: new( "inner" ) ) ,
@@ -1085,7 +1085,7 @@ mod tests {
10851085 de. read,
10861086 vec![
10871087 Start ( BytesStart :: new( "inner" ) ) ,
1088- Text ( BytesText :: from_escaped_str ( "text" ) ) ,
1088+ Text ( BytesText :: from_escaped ( "text" ) ) ,
10891089 Start ( BytesStart :: new( "inner" ) ) ,
10901090 End ( BytesEnd :: new( "inner" ) ) ,
10911091 End ( BytesEnd :: new( "inner" ) ) ,
@@ -1109,7 +1109,7 @@ mod tests {
11091109 vec![
11101110 // This comment here to keep the same formatting of both arrays
11111111 // otherwise rustfmt suggest one-line it
1112- Text ( BytesText :: from_escaped_str ( "text" ) ) ,
1112+ Text ( BytesText :: from_escaped ( "text" ) ) ,
11131113 ]
11141114 ) ;
11151115
@@ -1129,15 +1129,12 @@ mod tests {
11291129 assert_eq ! (
11301130 de. read,
11311131 vec![
1132- Text ( BytesText :: from_escaped_str ( "text" ) ) ,
1132+ Text ( BytesText :: from_escaped ( "text" ) ) ,
11331133 End ( BytesEnd :: new( "inner" ) ) ,
11341134 ]
11351135 ) ;
11361136 assert_eq ! ( de. write, vec![ ] ) ;
1137- assert_eq ! (
1138- de. next( ) . unwrap( ) ,
1139- Text ( BytesText :: from_escaped_str( "text" ) )
1140- ) ;
1137+ assert_eq ! ( de. next( ) . unwrap( ) , Text ( BytesText :: from_escaped( "text" ) ) ) ;
11411138 assert_eq ! ( de. next( ) . unwrap( ) , End ( BytesEnd :: new( "inner" ) ) ) ;
11421139 assert_eq ! ( de. next( ) . unwrap( ) , Start ( BytesStart :: new( "target" ) ) ) ;
11431140 assert_eq ! ( de. next( ) . unwrap( ) , End ( BytesEnd :: new( "target" ) ) ) ;
@@ -1174,7 +1171,7 @@ mod tests {
11741171 de. write,
11751172 vec![
11761173 Start ( BytesStart :: new( "skip" ) ) ,
1177- Text ( BytesText :: from_escaped_str ( "text" ) ) ,
1174+ Text ( BytesText :: from_escaped ( "text" ) ) ,
11781175 Start ( BytesStart :: new( "skip" ) ) ,
11791176 End ( BytesEnd :: new( "skip" ) ) ,
11801177 End ( BytesEnd :: new( "skip" ) ) ,
@@ -1195,7 +1192,7 @@ mod tests {
11951192 de. write,
11961193 vec![
11971194 Start ( BytesStart :: new( "skip" ) ) ,
1198- Text ( BytesText :: from_escaped_str ( "text" ) ) ,
1195+ Text ( BytesText :: from_escaped ( "text" ) ) ,
11991196 Start ( BytesStart :: new( "skip" ) ) ,
12001197 End ( BytesEnd :: new( "skip" ) ) ,
12011198 End ( BytesEnd :: new( "skip" ) ) ,
@@ -1217,7 +1214,7 @@ mod tests {
12171214 de. read,
12181215 vec![
12191216 Start ( BytesStart :: new( "skip" ) ) ,
1220- Text ( BytesText :: from_escaped_str ( "text" ) ) ,
1217+ Text ( BytesText :: from_escaped ( "text" ) ) ,
12211218 Start ( BytesStart :: new( "skip" ) ) ,
12221219 End ( BytesEnd :: new( "skip" ) ) ,
12231220 End ( BytesEnd :: new( "skip" ) ) ,
@@ -1368,7 +1365,7 @@ mod tests {
13681365 r#"item name="hello" source="world.rs""# ,
13691366 4
13701367 ) ) ,
1371- Text ( BytesText :: from_escaped_str ( "Some text" ) ) ,
1368+ Text ( BytesText :: from_escaped ( "Some text" ) ) ,
13721369 End ( BytesEnd :: new( "item" ) ) ,
13731370 Start ( BytesStart :: from_content( "item2" , 5 ) ) ,
13741371 End ( BytesEnd :: new( "item2" ) ) ,
0 commit comments