@@ -27,8 +27,8 @@ impl TzifBlockV2 {
2727 let mut local_time_set = IndexSet :: new ( ) ;
2828 let mut designation_set = DesignationSet :: default ( ) ;
2929
30- let index =
31- designation_set . insert_and_retrieve_index ( data. initial_record . designation . chars ( ) . collect ( ) ) ;
30+ let index = designation_set
31+ . insert_and_retrieve_index ( data. initial_record . designation . chars ( ) . collect ( ) ) ;
3232 local_time_set. insert ( LocalTimeRecord {
3333 offset : data. initial_record . offset ,
3434 is_dst : data. initial_record . saving . as_secs ( ) != 0 ,
@@ -37,7 +37,8 @@ impl TzifBlockV2 {
3737 let mut transition_times = Vec :: default ( ) ;
3838 let mut transition_types = Vec :: default ( ) ;
3939 for transition in & data. transitions {
40- let index = designation_set. insert_and_retrieve_index ( transition. format . chars ( ) . collect ( ) ) ;
40+ let index =
41+ designation_set. insert_and_retrieve_index ( transition. format . chars ( ) . collect ( ) ) ;
4142 let local_time_record = LocalTimeRecord {
4243 offset : transition. offset ,
4344 is_dst : transition. dst ,
@@ -51,7 +52,6 @@ impl TzifBlockV2 {
5152 let _ = local_time_set. insert ( local_time_record) ;
5253 transition_types. push ( local_time_set. len ( ) as u8 - 1 ) ;
5354 }
54-
5555 }
5656 }
5757
@@ -64,7 +64,6 @@ impl TzifBlockV2 {
6464 transition_types,
6565 local_time_types,
6666 designations,
67-
6867 }
6968 }
7069}
@@ -109,8 +108,7 @@ impl DesignationSet {
109108 }
110109
111110 pub fn to_vec ( self ) -> Vec < char > {
112- self
113- . designations
111+ self . designations
114112 . into_iter ( )
115113 . collect :: < Vec < Vec < char > > > ( )
116114 . concat ( )
0 commit comments