@@ -119,7 +119,7 @@ fn read_deflated_zonefiles(
119
119
zonefile_hash : pair[ 0 ] . to_owned ( ) ,
120
120
zonefile_content : pair[ 1 ] . replace ( "\\ n" , "\n " ) ,
121
121
} ) ;
122
- return Box :: new ( pair_iter) ;
122
+ Box :: new ( pair_iter)
123
123
}
124
124
125
125
fn 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
130
130
. lines ( )
131
131
. map ( |line| line. unwrap ( ) )
132
132
. map ( |line| line. split ( ',' ) . map ( String :: from) . collect ( ) ) ;
133
- return Box :: new ( line_iter) ;
133
+ Box :: new ( line_iter)
134
134
}
135
135
136
136
fn read_balances ( deflate_bytes : & ' static [ u8 ] ) -> Box < dyn Iterator < Item = GenesisAccountBalance > > {
137
137
let balances = iter_deflated_csv ( deflate_bytes) . map ( |cols| GenesisAccountBalance {
138
138
address : cols[ 0 ] . to_string ( ) ,
139
139
amount : cols[ 1 ] . parse :: < u64 > ( ) . unwrap ( ) ,
140
140
} ) ;
141
- return Box :: new ( balances) ;
141
+ Box :: new ( balances)
142
142
}
143
143
144
144
fn 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
147
147
amount : cols[ 1 ] . parse :: < u64 > ( ) . unwrap ( ) ,
148
148
block_height : cols[ 2 ] . parse :: < u64 > ( ) . unwrap ( ) ,
149
149
} ) ;
150
- return Box :: new ( lockups) ;
150
+ Box :: new ( lockups)
151
151
}
152
152
153
153
fn 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
161
161
no_vowel_discount : cols[ 6 ] . parse :: < i64 > ( ) . unwrap ( ) ,
162
162
lifetime : cols[ 7 ] . parse :: < i64 > ( ) . unwrap ( ) ,
163
163
} ) ;
164
- return Box :: new ( namespaces) ;
164
+ Box :: new ( namespaces)
165
165
}
166
166
167
167
fn 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
170
170
owner : cols[ 1 ] . to_string ( ) ,
171
171
zonefile_hash : cols[ 2 ] . to_string ( ) ,
172
172
} ) ;
173
- return Box :: new ( names) ;
173
+ Box :: new ( names)
174
174
}
175
175
176
176
#[ cfg( test) ]
0 commit comments