@@ -450,7 +450,7 @@ struct S<'a> {
450
450
451
451
impl < ' a > Named for S < ' a > {
452
452
fn new ( name : & ' static str ) -> S < ' a > {
453
- S { name : name , mark : Cell :: new ( 0 ) , next : Cell :: new ( None ) }
453
+ S { name, mark : Cell :: new ( 0 ) , next : Cell :: new ( None ) }
454
454
}
455
455
fn name ( & self ) -> & str { self . name }
456
456
}
@@ -468,7 +468,7 @@ struct S2<'a> {
468
468
469
469
impl < ' a > Named for S2 < ' a > {
470
470
fn new ( name : & ' static str ) -> S2 < ' a > {
471
- S2 { name : name , mark : Cell :: new ( 0 ) , next : Cell :: new ( ( None , None ) ) }
471
+ S2 { name, mark : Cell :: new ( 0 ) , next : Cell :: new ( ( None , None ) ) }
472
472
}
473
473
fn name ( & self ) -> & str { self . name }
474
474
}
@@ -488,7 +488,7 @@ struct V<'a> {
488
488
489
489
impl < ' a > Named for V < ' a > {
490
490
fn new ( name : & ' static str ) -> V < ' a > {
491
- V { name : name ,
491
+ V { name,
492
492
mark : Cell :: new ( 0 ) ,
493
493
contents : vec ! [ Cell :: new( None ) , Cell :: new( None ) ]
494
494
}
@@ -510,7 +510,7 @@ struct H<'a> {
510
510
511
511
impl < ' a > Named for H < ' a > {
512
512
fn new ( name : & ' static str ) -> H < ' a > {
513
- H { name : name , mark : Cell :: new ( 0 ) , next : Cell :: new ( None ) }
513
+ H { name, mark : Cell :: new ( 0 ) , next : Cell :: new ( None ) }
514
514
}
515
515
fn name ( & self ) -> & str { self . name }
516
516
}
@@ -541,7 +541,7 @@ struct HM<'a> {
541
541
542
542
impl < ' a > Named for HM < ' a > {
543
543
fn new ( name : & ' static str ) -> HM < ' a > {
544
- HM { name : name ,
544
+ HM { name,
545
545
mark : Cell :: new ( 0 ) ,
546
546
contents : Cell :: new ( None )
547
547
}
@@ -575,7 +575,7 @@ struct VD<'a> {
575
575
576
576
impl < ' a > Named for VD < ' a > {
577
577
fn new ( name : & ' static str ) -> VD < ' a > {
578
- VD { name : name ,
578
+ VD { name,
579
579
mark : Cell :: new ( 0 ) ,
580
580
contents : Cell :: new ( None )
581
581
}
@@ -596,7 +596,7 @@ struct VM<'a> {
596
596
597
597
impl < ' a > Named for VM < ' a > {
598
598
fn new ( name : & ' static str ) -> VM < ' a > {
599
- VM { name : name ,
599
+ VM { name,
600
600
mark : Cell :: new ( 0 ) ,
601
601
contents : Cell :: new ( None )
602
602
}
@@ -617,7 +617,7 @@ struct LL<'a> {
617
617
618
618
impl < ' a > Named for LL < ' a > {
619
619
fn new ( name : & ' static str ) -> LL < ' a > {
620
- LL { name : name ,
620
+ LL { name,
621
621
mark : Cell :: new ( 0 ) ,
622
622
contents : Cell :: new ( None )
623
623
}
@@ -638,7 +638,7 @@ struct BH<'a> {
638
638
639
639
impl < ' a > Named for BH < ' a > {
640
640
fn new ( name : & ' static str ) -> BH < ' a > {
641
- BH { name : name ,
641
+ BH { name,
642
642
mark : Cell :: new ( 0 ) ,
643
643
contents : Cell :: new ( None )
644
644
}
@@ -679,7 +679,7 @@ struct BTM<'a> {
679
679
680
680
impl < ' a > Named for BTM < ' a > {
681
681
fn new ( name : & ' static str ) -> BTM < ' a > {
682
- BTM { name : name ,
682
+ BTM { name,
683
683
mark : Cell :: new ( 0 ) ,
684
684
contents : Cell :: new ( None )
685
685
}
@@ -720,7 +720,7 @@ struct BTS<'a> {
720
720
721
721
impl < ' a > Named for BTS < ' a > {
722
722
fn new ( name : & ' static str ) -> BTS < ' a > {
723
- BTS { name : name ,
723
+ BTS { name,
724
724
mark : Cell :: new ( 0 ) ,
725
725
contents : Cell :: new ( None )
726
726
}
@@ -765,7 +765,7 @@ struct RCRC<'a>(Rc<RefCell<RCRCData<'a>>>);
765
765
impl < ' a > Named for RCRC < ' a > {
766
766
fn new ( name : & ' static str ) -> Self {
767
767
RCRC ( Rc :: new ( RefCell :: new ( RCRCData {
768
- name : name , mark : Cell :: new ( 0 ) , children : ( None , None ) , } ) ) )
768
+ name, mark : Cell :: new ( 0 ) , children : ( None , None ) , } ) ) )
769
769
}
770
770
fn name ( & self ) -> & str { self . 0 . borrow ( ) . name }
771
771
}
@@ -802,7 +802,7 @@ struct ARCRC<'a>(Arc<RefCell<ARCRCData<'a>>>);
802
802
impl < ' a > Named for ARCRC < ' a > {
803
803
fn new ( name : & ' static str ) -> Self {
804
804
ARCRC ( Arc :: new ( RefCell :: new ( ARCRCData {
805
- name : name , mark : Cell :: new ( 0 ) , children : ( None , None ) , } ) ) )
805
+ name, mark : Cell :: new ( 0 ) , children : ( None , None ) , } ) ) )
806
806
}
807
807
fn name ( & self ) -> & str { self . 0 . borrow ( ) . name }
808
808
}
@@ -885,7 +885,7 @@ struct ARCRW<'a>(Arc<RwLock<ARCRWData<'a>>>);
885
885
impl < ' a > Named for ARCRW < ' a > {
886
886
fn new ( name : & ' static str ) -> Self {
887
887
ARCRW ( Arc :: new ( RwLock :: new ( ARCRWData {
888
- name : name , mark : Cell :: new ( 0 ) , children : ( None , None ) , } ) ) )
888
+ name, mark : Cell :: new ( 0 ) , children : ( None , None ) , } ) ) )
889
889
}
890
890
fn name ( & self ) -> & str { self . 0 . read ( ) . unwrap ( ) . name }
891
891
}
0 commit comments