@@ -119,7 +119,7 @@ fn read_deflated_zonefiles(
119119 zonefile_hash : pair[ 0 ] . to_owned ( ) ,
120120 zonefile_content : pair[ 1 ] . replace ( "\\ n" , "\n " ) ,
121121 } ) ;
122- return Box :: new ( pair_iter) ;
122+ Box :: new ( pair_iter)
123123}
124124
125125fn iter_deflated_csv ( deflate_bytes : & ' static [ u8 ] ) -> Box < dyn Iterator < Item = Vec < String > > > {
@@ -130,15 +130,15 @@ fn iter_deflated_csv(deflate_bytes: &'static [u8]) -> Box<dyn Iterator<Item = Ve
130130 . lines ( )
131131 . map ( |line| line. unwrap ( ) )
132132 . map ( |line| line. split ( ',' ) . map ( String :: from) . collect ( ) ) ;
133- return Box :: new ( line_iter) ;
133+ Box :: new ( line_iter)
134134}
135135
136136fn read_balances ( deflate_bytes : & ' static [ u8 ] ) -> Box < dyn Iterator < Item = GenesisAccountBalance > > {
137137 let balances = iter_deflated_csv ( deflate_bytes) . map ( |cols| GenesisAccountBalance {
138138 address : cols[ 0 ] . to_string ( ) ,
139139 amount : cols[ 1 ] . parse :: < u64 > ( ) . unwrap ( ) ,
140140 } ) ;
141- return Box :: new ( balances) ;
141+ Box :: new ( balances)
142142}
143143
144144fn read_lockups ( deflate_bytes : & ' static [ u8 ] ) -> Box < dyn Iterator < Item = GenesisAccountLockup > > {
@@ -147,7 +147,7 @@ fn read_lockups(deflate_bytes: &'static [u8]) -> Box<dyn Iterator<Item = Genesis
147147 amount : cols[ 1 ] . parse :: < u64 > ( ) . unwrap ( ) ,
148148 block_height : cols[ 2 ] . parse :: < u64 > ( ) . unwrap ( ) ,
149149 } ) ;
150- return Box :: new ( lockups) ;
150+ Box :: new ( lockups)
151151}
152152
153153fn read_namespaces ( deflate_bytes : & ' static [ u8 ] ) -> Box < dyn Iterator < Item = GenesisNamespace > > {
@@ -161,7 +161,7 @@ fn read_namespaces(deflate_bytes: &'static [u8]) -> Box<dyn Iterator<Item = Gene
161161 no_vowel_discount : cols[ 6 ] . parse :: < i64 > ( ) . unwrap ( ) ,
162162 lifetime : cols[ 7 ] . parse :: < i64 > ( ) . unwrap ( ) ,
163163 } ) ;
164- return Box :: new ( namespaces) ;
164+ Box :: new ( namespaces)
165165}
166166
167167fn read_names ( deflate_bytes : & ' static [ u8 ] ) -> Box < dyn Iterator < Item = GenesisName > > {
@@ -170,7 +170,7 @@ fn read_names(deflate_bytes: &'static [u8]) -> Box<dyn Iterator<Item = GenesisNa
170170 owner : cols[ 1 ] . to_string ( ) ,
171171 zonefile_hash : cols[ 2 ] . to_string ( ) ,
172172 } ) ;
173- return Box :: new ( names) ;
173+ Box :: new ( names)
174174}
175175
176176#[ cfg( test) ]
0 commit comments