Skip to content

Commit 4d35f92

Browse files
committed
style: fix Rust formatting
cargo fmt to pass CI check
1 parent da2b6e5 commit 4d35f92

5 files changed

Lines changed: 6 additions & 11 deletions

File tree

src-tauri/src/commands/sync.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ pub async fn sync_subscriptions(
7171
let ntfy_base = normalize_url(&ntfy_sub.base_url);
7272

7373
if ntfy_base != our_base {
74-
log::info!(
75-
"Skipping subscription - base_url mismatch: {ntfy_base} vs {our_base}"
76-
);
74+
log::info!("Skipping subscription - base_url mismatch: {ntfy_base} vs {our_base}");
7775
continue;
7876
}
7977

src-tauri/src/db/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ impl Database {
239239
"SELECT id FROM servers WHERE url = ?1",
240240
[&sub.server_url],
241241
|row| row.get(0),
242-
) { id } else {
242+
) {
243+
id
244+
} else {
243245
let id = uuid::Uuid::new_v4().to_string();
244246
conn.execute(
245247
"INSERT INTO servers (id, url, is_default) VALUES (?1, ?2, 0)",

src-tauri/src/services/credential_manager.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ pub fn get_password(username: &str, server_url: &str) -> Result<Option<String>,
3535
info!("No password found for {username}@{server_url}");
3636
Ok(None)
3737
}
38-
Err(e) => Err(AppError::Credential(format!(
39-
"Failed to get password: {e}"
40-
))),
38+
Err(e) => Err(AppError::Credential(format!("Failed to get password: {e}"))),
4139
}
4240
}
4341

src-tauri/src/services/ntfy_client.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ impl NtfyClient {
134134

135135
let response = request.send().await.map_err(|e| {
136136
log::error!("Failed to fetch messages: {e}");
137-
AppError::Connection(format!(
138-
"Failed to fetch messages from {server_url}: {e}"
139-
))
137+
AppError::Connection(format!("Failed to fetch messages from {server_url}: {e}"))
140138
})?;
141139

142140
if !response.status().is_success() {

src-tauri/src/services/tray_manager.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ struct TrayState {
1818
has_unread: bool,
1919
}
2020

21-
2221
/// Manages system tray icon state and appearance.
2322
///
2423
/// Supports two icon states: normal and unread (notification badge).

0 commit comments

Comments
 (0)