diff --git a/desktop/src-tauri/src/local/store.rs b/desktop/src-tauri/src/local/store.rs index 854ce78..1cf96b5 100644 --- a/desktop/src-tauri/src/local/store.rs +++ b/desktop/src-tauri/src/local/store.rs @@ -683,8 +683,10 @@ pub fn record_pending_delete(conn: &Connection, entity: &str, id: &str) -> rusql /// default rather than one being invented here — the meaning of "unset" belongs /// with the setting, not with the storage. pub fn pref(conn: &Connection, key: &str) -> rusqlite::Result> { - conn.query_row("SELECT value FROM prefs WHERE key = ?1", [key], |r| r.get(0)) - .optional() + conn.query_row("SELECT value FROM prefs WHERE key = ?1", [key], |r| { + r.get(0) + }) + .optional() } pub fn set_pref(conn: &Connection, key: &str, value: &str) -> rusqlite::Result<()> { diff --git a/desktop/src-tauri/src/update.rs b/desktop/src-tauri/src/update.rs index 22c2da9..ecfc7e0 100644 --- a/desktop/src-tauri/src/update.rs +++ b/desktop/src-tauri/src/update.rs @@ -92,7 +92,10 @@ fn self_update_blocker() -> Option { fn read_channel(db: &State<'_, Db>) -> Result { let conn = db.0.lock().map_err(|e| e.to_string())?; let raw = store::pref(&conn, CHANNEL_PREF).map_err(|e| e.to_string())?; - Ok(raw.as_deref().map(Channel::parse).unwrap_or(Channel::Stable)) + Ok(raw + .as_deref() + .map(Channel::parse) + .unwrap_or(Channel::Stable)) } #[tauri::command]