Skip to content

Commit 3bd7513

Browse files
committed
run cargo fmt
1 parent b3e3360 commit 3bd7513

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

datafusion-postgres/src/handlers.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,20 +1033,20 @@ mod tests {
10331033
let hook = TestHook;
10341034
let ctx = SessionContext::new();
10351035
let client = MockClient::new();
1036-
1036+
10371037
// Parse a statement that contains "magic"
10381038
let parser = PostgresCompatibilityParser::new();
10391039
let statements = parser.parse("SELECT magic").unwrap();
10401040
let stmt = Statement::Statement(Box::new(statements[0].clone()));
1041-
1041+
10421042
// Hook should intercept
10431043
let result = hook.handle_query(&stmt, &ctx, &client).await;
10441044
assert!(result.is_some());
1045-
1045+
10461046
// Parse a normal statement
10471047
let statements = parser.parse("SELECT 1").unwrap();
10481048
let stmt = Statement::Statement(Box::new(statements[0].clone()));
1049-
1049+
10501050
// Hook should not intercept
10511051
let result = hook.handle_query(&stmt, &ctx, &client).await;
10521052
assert!(result.is_none());

datafusion-postgres/tests/common/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ pub fn setup_handlers() -> DfSessionService {
2020
)
2121
.expect("Failed to setup sesession context");
2222

23-
DfSessionService::new(Arc::new(session_context), Arc::new(AuthManager::new()), vec![])
23+
DfSessionService::new(
24+
Arc::new(session_context),
25+
Arc::new(AuthManager::new()),
26+
vec![],
27+
)
2428
}
2529

2630
#[derive(Debug, Default)]

0 commit comments

Comments
 (0)