Skip to content

Commit e258bea

Browse files
committedApr 4, 2025
fix: lint-fix
1 parent 15f3df6 commit e258bea

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎crates/pgt_workspace/src/settings.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -449,32 +449,32 @@ mod tests {
449449
#[test]
450450
fn should_identify_allowed_statement_executions() {
451451
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+
)])),
455455
host: Some("localhost".into()),
456456
database: Some("test-db".into()),
457457
..Default::default()
458458
};
459459

460460
let config = DatabaseSettings::from(partial_config);
461461

462-
assert_eq!(config.allow_statement_executions, true)
462+
assert!(config.allow_statement_executions)
463463
}
464464

465465
#[test]
466466
fn should_identify_not_allowed_statement_executions() {
467467
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+
)])),
471471
host: Some("production".into()),
472472
database: Some("test-db".into()),
473473
..Default::default()
474474
};
475475

476476
let config = DatabaseSettings::from(partial_config);
477477

478-
assert_eq!(config.allow_statement_executions, false)
478+
assert!(!config.allow_statement_executions)
479479
}
480480
}

0 commit comments

Comments
 (0)