@@ -449,32 +449,32 @@ mod tests {
449
449
#[ test]
450
450
fn should_identify_allowed_statement_executions ( ) {
451
451
let partial_config = PartialDatabaseConfiguration {
452
- allow_statement_executions_against : Some ( StringSet :: from_iter (
453
- vec ! [ String :: from ( "localhost/*" ) ] . into_iter ( ) ,
454
- ) ) ,
452
+ allow_statement_executions_against : Some ( StringSet :: from_iter ( vec ! [ String :: from (
453
+ "localhost/*" ,
454
+ ) ] ) ) ,
455
455
host : Some ( "localhost" . into ( ) ) ,
456
456
database : Some ( "test-db" . into ( ) ) ,
457
457
..Default :: default ( )
458
458
} ;
459
459
460
460
let config = DatabaseSettings :: from ( partial_config) ;
461
461
462
- assert_eq ! ( config. allow_statement_executions, true )
462
+ assert ! ( config. allow_statement_executions)
463
463
}
464
464
465
465
#[ test]
466
466
fn should_identify_not_allowed_statement_executions ( ) {
467
467
let partial_config = PartialDatabaseConfiguration {
468
- allow_statement_executions_against : Some ( StringSet :: from_iter (
469
- vec ! [ String :: from ( "localhost/*" ) ] . into_iter ( ) ,
470
- ) ) ,
468
+ allow_statement_executions_against : Some ( StringSet :: from_iter ( vec ! [ String :: from (
469
+ "localhost/*" ,
470
+ ) ] ) ) ,
471
471
host : Some ( "production" . into ( ) ) ,
472
472
database : Some ( "test-db" . into ( ) ) ,
473
473
..Default :: default ( )
474
474
} ;
475
475
476
476
let config = DatabaseSettings :: from ( partial_config) ;
477
477
478
- assert_eq ! ( config. allow_statement_executions, false )
478
+ assert ! ( ! config. allow_statement_executions)
479
479
}
480
480
}
0 commit comments