@@ -225,9 +225,10 @@ fn check_local_environment(result: &mut PreflightResult) {
225225 }
226226 Err ( _) => {
227227 missing. push ( tool) ;
228- result
229- . local_env
230- . push ( CheckResult :: fail ( tool, format ! ( "{} not found in PATH" , tool) ) ) ;
228+ result. local_env . push ( CheckResult :: fail (
229+ tool,
230+ format ! ( "{} not found in PATH" , tool) ,
231+ ) ) ;
231232 }
232233 }
233234 }
@@ -342,9 +343,10 @@ async fn check_source_permissions(result: &mut PreflightResult, source_url: &str
342343 match crate :: postgres:: check_source_privileges ( & client) . await {
343344 Ok ( privs) => {
344345 if privs. has_replication || privs. is_superuser {
345- result
346- . source_permissions
347- . push ( CheckResult :: pass ( "replication" , "Has REPLICATION privilege" ) ) ;
346+ result. source_permissions . push ( CheckResult :: pass (
347+ "replication" ,
348+ "Has REPLICATION privilege" ,
349+ ) ) ;
348350 } else {
349351 result. source_permissions . push ( CheckResult :: fail (
350352 "replication" ,
@@ -376,7 +378,8 @@ async fn check_source_permissions(result: &mut PreflightResult, source_url: &str
376378 } else {
377379 let inaccessible = & perms. inaccessible_tables ;
378380 let count = inaccessible. len ( ) ;
379- let preview: Vec < & str > = inaccessible. iter ( ) . take ( 5 ) . map ( |s| s. as_str ( ) ) . collect ( ) ;
381+ let preview: Vec < & str > =
382+ inaccessible. iter ( ) . take ( 5 ) . map ( |s| s. as_str ( ) ) . collect ( ) ;
380383 let details = if count > 5 {
381384 format ! ( "{}, ... ({} more)" , preview. join( ", " ) , count - 5 )
382385 } else {
@@ -389,12 +392,10 @@ async fn check_source_permissions(result: &mut PreflightResult, source_url: &str
389392 ) ;
390393 result. issues . push ( PreflightIssue {
391394 title : "Missing table permissions" . to_string ( ) ,
392- explanation : format ! (
393- "User needs SELECT on {} tables" ,
394- count
395- ) ,
395+ explanation : format ! ( "User needs SELECT on {} tables" , count) ,
396396 fixes : vec ! [
397- "Run: GRANT SELECT ON ALL TABLES IN SCHEMA public TO <username>;" . to_string( ) ,
397+ "Run: GRANT SELECT ON ALL TABLES IN SCHEMA public TO <username>;"
398+ . to_string( ) ,
398399 ] ,
399400 } ) ;
400401 }
@@ -429,9 +430,10 @@ async fn check_target_permissions(result: &mut PreflightResult, target_url: &str
429430 }
430431
431432 if privs. is_superuser || privs. has_replication {
432- result
433- . target_permissions
434- . push ( CheckResult :: pass ( "subscription" , "Can create subscriptions" ) ) ;
433+ result. target_permissions . push ( CheckResult :: pass (
434+ "subscription" ,
435+ "Can create subscriptions" ,
436+ ) ) ;
435437 } else {
436438 result. target_permissions . push ( CheckResult :: fail (
437439 "subscription" ,
0 commit comments