@@ -183,10 +183,8 @@ fn test_with_no_deny_list_from_files() {
183183 let Ok ( generated_docs) = generate_docs_from_dir_no_deny ( "sql_files" ) else {
184184 panic ! ( "unable to locate test dir" ) ;
185185 } ;
186- let mut actual_paths: Vec < String > = generated_docs
187- . iter ( )
188- . map ( |( path, _) | path. to_string_lossy ( ) . into_owned ( ) )
189- . collect ( ) ;
186+ let mut actual_paths: Vec < String > =
187+ generated_docs. iter ( ) . map ( |( path, _) | path. to_string_lossy ( ) . into_owned ( ) ) . collect ( ) ;
190188 actual_paths. sort ( ) ;
191189 let mut expected_paths = vec ! [
192190 "sql_files/without_comments.sql" . to_string( ) ,
@@ -197,24 +195,16 @@ fn test_with_no_deny_list_from_files() {
197195 expected_paths. sort ( ) ;
198196 assert_eq ! ( actual_paths, expected_paths) ;
199197 let target = Path :: new ( "sql_files/with_mixed_comments.sql" ) ;
200- let Some ( ( _, mixed_docs) ) = generated_docs
201- . iter ( )
202- . find ( |( path, _) | path. as_path ( ) == target)
198+ let Some ( ( _, mixed_docs) ) = generated_docs. iter ( ) . find ( |( path, _) | path. as_path ( ) == target)
203199 else {
204200 panic ! ( "with_mixed_comments.sql should be present" ) ;
205201 } ;
206202 let table_names = [ "users" , "posts" ] ;
207- let table_comments = [
208- "Users table stores user account information" ,
209- "Posts table stores blog posts" ,
210- ] ;
203+ let table_comments =
204+ [ "Users table stores user account information" , "Posts table stores blog posts" ] ;
211205 let user_columns = [ "id" , "username" , "email" , "created_at" ] ;
212- let user_columns_comments = [
213- "Primary key" ,
214- "Username for login" ,
215- "Email address" ,
216- "When the user registered" ,
217- ] ;
206+ let user_columns_comments =
207+ [ "Primary key" , "Username for login" , "Email address" , "When the user registered" ] ;
218208 for ( i, table) in mixed_docs. tables ( ) . iter ( ) . enumerate ( ) {
219209 assert_eq ! ( table. name( ) , table_names[ i] ) ;
220210
0 commit comments