@@ -8,13 +8,13 @@ mod tests {
88 http:: { header, StatusCode } , HttpRequest , HttpResponse , test, web,
99 } ;
1010 use diesel:: RunQueryDsl ;
11+
1112 use lazy_static:: lazy_static;
1213
1314 use crate :: addresses;
1415 use crate :: data:: create_or_update_addresses;
1516 use crate :: db:: { init_test_connection_pool, Pool } ;
16- use crate :: models:: Address ;
17- use crate :: postcode:: AddressRecord ;
17+ use crate :: models:: { Address , AddressRecord } ;
1818
1919 embed_migrations ! ( "./migrations" ) ;
2020
@@ -161,35 +161,35 @@ mod tests {
161161 & POOL . get ( ) . unwrap ( ) ,
162162 & [
163163 AddressRecord {
164- lon : 1.0 ,
165164 lat : 2.0 ,
165+ lon : 1.0 ,
166166 number : "1" . to_string ( ) ,
167167 street : "Street" . to_string ( ) ,
168168 city : "City" . to_string ( ) ,
169169 region : "Region" . to_string ( ) ,
170170 postcode : "2222AA" . to_string ( )
171171 } ,
172172 AddressRecord {
173- lon : 2.0 ,
174173 lat : 3.0 ,
174+ lon : 2.0 ,
175175 number : "2" . to_string ( ) ,
176176 street : "Street" . to_string ( ) ,
177177 city : "City" . to_string ( ) ,
178178 region : "Region" . to_string ( ) ,
179179 postcode : "2222AA" . to_string ( )
180180 } ,
181181 AddressRecord {
182- lon : 3.0 ,
183182 lat : 4.0 ,
183+ lon : 3.0 ,
184184 number : "2A" . to_string ( ) ,
185185 street : "Street" . to_string ( ) ,
186186 city : "City" . to_string ( ) ,
187187 region : "Region" . to_string ( ) ,
188188 postcode : "2222AA" . to_string ( )
189189 } ,
190190 AddressRecord {
191- lon : 4.0 ,
192191 lat : 5.0 ,
192+ lon : 4.0 ,
193193 number : "2B" . to_string ( ) ,
194194 street : "Street" . to_string ( ) ,
195195 city : "City" . to_string ( ) ,
@@ -199,4 +199,4 @@ mod tests {
199199 ]
200200 ) ;
201201 }
202- }
202+ }
0 commit comments