diff --git a/desktop/src-tauri/src/local/retention.rs b/desktop/src-tauri/src/local/retention.rs index ba6600a..d5772d8 100644 --- a/desktop/src-tauri/src/local/retention.rs +++ b/desktop/src-tauri/src/local/retention.rs @@ -36,8 +36,9 @@ pub fn sweep_expired_trash( let cutoff = now - Duration::days(retention_days); let mut expired: Vec = Vec::new(); { - let mut stmt = conn - .prepare("SELECT id, trashed_at FROM notes WHERE trashed = 1 AND trashed_at IS NOT NULL")?; + let mut stmt = conn.prepare( + "SELECT id, trashed_at FROM notes WHERE trashed = 1 AND trashed_at IS NOT NULL", + )?; let mut rows = stmt.query([])?; while let Some(row) = rows.next()? { let id: String = row.get(0)?; @@ -210,7 +211,11 @@ mod tests { trashed_note(&conn, "old", 400); state::set_link(&conn, "https://notes.example", "token").expect("link"); assert_eq!(sweep_if_unlinked(&conn).expect("sweep"), None); - assert_eq!(note_count(&conn), 1, "the note must survive on a linked device"); + assert_eq!( + note_count(&conn), + 1, + "the note must survive on a linked device" + ); } #[test]