@@ -208,9 +208,9 @@ impl<'text> InitialInfo<'text> {
208
208
assert ! ( original_classes. len( ) == text. len( ) ) ;
209
209
210
210
InitialInfo {
211
- text,
212
- original_classes,
213
- paragraphs,
211
+ text : text ,
212
+ original_classes : original_classes ,
213
+ paragraphs : paragraphs ,
214
214
}
215
215
}
216
216
}
@@ -284,10 +284,10 @@ impl<'text> BidiInfo<'text> {
284
284
}
285
285
286
286
BidiInfo {
287
- text,
288
- original_classes,
289
- paragraphs,
290
- levels,
287
+ text : text ,
288
+ original_classes : original_classes ,
289
+ paragraphs : paragraphs ,
290
+ levels : levels ,
291
291
}
292
292
}
293
293
@@ -460,7 +460,7 @@ mod tests {
460
460
assert_eq ! (
461
461
InitialInfo :: new( text, None ) ,
462
462
InitialInfo {
463
- text,
463
+ text: & text ,
464
464
original_classes: vec![ L , EN ] ,
465
465
paragraphs: vec![
466
466
ParagraphInfo {
@@ -475,7 +475,7 @@ mod tests {
475
475
assert_eq ! (
476
476
InitialInfo :: new( text, None ) ,
477
477
InitialInfo {
478
- text,
478
+ text: & text ,
479
479
original_classes: vec![ AL , AL , WS , R , R ] ,
480
480
paragraphs: vec![
481
481
ParagraphInfo {
@@ -490,7 +490,7 @@ mod tests {
490
490
assert_eq ! (
491
491
InitialInfo :: new( text, None ) ,
492
492
InitialInfo {
493
- text,
493
+ text: & text ,
494
494
original_classes: vec![ L , B , B , B , L ] ,
495
495
paragraphs: vec![
496
496
ParagraphInfo {
@@ -527,7 +527,7 @@ mod tests {
527
527
assert_eq ! (
528
528
BidiInfo :: new( text, Some ( Level :: ltr( ) ) ) ,
529
529
BidiInfo {
530
- text,
530
+ text: & text ,
531
531
levels: Level :: vec( & [ 0 , 0 , 0 , 0 , 0 , 0 ] ) ,
532
532
original_classes: vec![ L , L , L , EN , EN , EN ] ,
533
533
paragraphs: vec![
@@ -543,7 +543,7 @@ mod tests {
543
543
assert_eq ! (
544
544
BidiInfo :: new( text, Some ( Level :: ltr( ) ) ) ,
545
545
BidiInfo {
546
- text,
546
+ text: & text ,
547
547
levels: Level :: vec( & [ 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 ] ) ,
548
548
original_classes: vec![ L , L , L , WS , R , R , R , R , R , R ] ,
549
549
paragraphs: vec![
@@ -557,7 +557,7 @@ mod tests {
557
557
assert_eq ! (
558
558
BidiInfo :: new( text, Some ( Level :: rtl( ) ) ) ,
559
559
BidiInfo {
560
- text,
560
+ text: & text ,
561
561
levels: Level :: vec( & [ 2 , 2 , 2 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ] ) ,
562
562
original_classes: vec![ L , L , L , WS , R , R , R , R , R , R ] ,
563
563
paragraphs: vec![
@@ -573,7 +573,7 @@ mod tests {
573
573
assert_eq ! (
574
574
BidiInfo :: new( text, Some ( Level :: ltr( ) ) ) ,
575
575
BidiInfo {
576
- text,
576
+ text: & text ,
577
577
levels: Level :: vec( & [ 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 ] ) ,
578
578
original_classes: vec![ R , R , R , R , R , R , WS , L , L , L ] ,
579
579
paragraphs: vec![
@@ -587,7 +587,7 @@ mod tests {
587
587
assert_eq ! (
588
588
BidiInfo :: new( text, None ) ,
589
589
BidiInfo {
590
- text,
590
+ text: & text ,
591
591
levels: Level :: vec( & [ 1 , 1 , 1 , 1 , 1 , 1 , 1 , 2 , 2 , 2 ] ) ,
592
592
original_classes: vec![ R , R , R , R , R , R , WS , L , L , L ] ,
593
593
paragraphs: vec![
@@ -603,7 +603,7 @@ mod tests {
603
603
assert_eq ! (
604
604
BidiInfo :: new( text, Some ( Level :: ltr( ) ) ) ,
605
605
BidiInfo {
606
- text,
606
+ text: & text ,
607
607
levels: Level :: vec( & [ 1 , 1 , 2 , 1 , 1 , 1 , 1 , 1 , 2 , 1 , 1 ] ) ,
608
608
original_classes: vec![ AL , AL , EN , AL , AL , WS , R , R , EN , R , R ] ,
609
609
paragraphs: vec![
@@ -619,7 +619,7 @@ mod tests {
619
619
assert_eq ! (
620
620
BidiInfo :: new( text, None ) ,
621
621
BidiInfo {
622
- text,
622
+ text: & text ,
623
623
original_classes: vec![ L , WS , R , R , CS , B , R , R ] ,
624
624
levels: Level :: vec( & [ 0 , 0 , 1 , 1 , 0 , 0 , 1 , 1 ] ) ,
625
625
paragraphs: vec![
0 commit comments