Skip to content

Commit dd53ed5

Browse files
committed
style: Fix formatting issues from cargo fmt
1 parent 1b21b88 commit dd53ed5

3 files changed

Lines changed: 17 additions & 11 deletions

File tree

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,10 @@ async fn check_and_enable_logical_replication(
511511
println!("║ Logical Replication Required ║");
512512
println!("╚══════════════════════════════════════════════════════════════╝");
513513
println!();
514-
println!("Project '{}' does not have logical replication enabled.", project.name);
514+
println!(
515+
"Project '{}' does not have logical replication enabled.",
516+
project.name
517+
);
515518
println!();
516519
println!("Logical replication is required for the 'sync' command to set up");
517520
println!("continuous replication between your source and target databases.");

src/preflight.rs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ pub async fn run_preflight_checks(
188188
Err(e) => {
189189
result.source_permissions.push(CheckResult::fail(
190190
"connection",
191-
format!("Failed to re-establish connection to source for permission checks: {}", e),
191+
format!(
192+
"Failed to re-establish connection to source for permission checks: {}",
193+
e
194+
),
192195
));
193196
result.issues.push(PreflightIssue {
194197
title: "Source connection for permissions failed".to_string(),
@@ -209,7 +212,10 @@ pub async fn run_preflight_checks(
209212
Err(e) => {
210213
result.target_permissions.push(CheckResult::fail(
211214
"connection",
212-
format!("Failed to re-establish connection to target for permission checks: {}", e),
215+
format!(
216+
"Failed to re-establish connection to target for permission checks: {}",
217+
e
218+
),
213219
));
214220
result.issues.push(PreflightIssue {
215221
title: "Target connection for permissions failed".to_string(),
@@ -288,9 +294,10 @@ async fn check_network_connectivity(
288294
}
289295
}
290296
}
291-
result
292-
.network
293-
.push(CheckResult::pass(db_type, format!("{} database reachable", db_type)));
297+
result.network.push(CheckResult::pass(
298+
db_type,
299+
format!("{} database reachable", db_type),
300+
));
294301
Ok(Some(db_url.to_string())) // Return the URL if connection was successful
295302
}
296303
Err(e) => {

src/serendb/client.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,7 @@ impl ConsoleClient {
9595
if !response.status().is_success() {
9696
let status = response.status();
9797
let body = response.text().await.unwrap_or_default();
98-
anyhow::bail!(
99-
"SerenDB Console API returned error {}: {}",
100-
status,
101-
body
102-
);
98+
anyhow::bail!("SerenDB Console API returned error {}: {}", status, body);
10399
}
104100

105101
let data: DataResponse<Project> = response

0 commit comments

Comments
 (0)