Skip to content

Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.

Probe: rustfmt

Yashwanth Kamireddi0cd68b5b1296
diff --git a/probe/examples/reminders_cleanup_tests.rs b/probe/examples/reminders_cleanup_tests.rs
index c439117..86daf49 100644
--- a/probe/examples/reminders_cleanup_tests.rs
+++ b/probe/examples/reminders_cleanup_tests.rs
@@ -5,14 +5,22 @@ use anyhow::{anyhow, Result};
async fn main() -> Result<()> {
let dir = std::path::PathBuf::from(std::env::var("HOME")?).join(".local/share/quince-probe");
let mut client = quince_auth::Client::new(&dir)?;
- if !client.resume().await? { return Err(anyhow!("no session")); }
- let root = client.session().service_url("ckdatabasews").ok_or_else(|| anyhow!("no ckdatabasews"))?;
+ if !client.resume().await? {
+ return Err(anyhow!("no session"));
+ }
+ let root = client
+ .session()
+ .service_url("ckdatabasews")
+ .ok_or_else(|| anyhow!("no ckdatabasews"))?;
let (http, p) = (client.http().clone(), client.service_params());
- let zc = quince_icloud::cloudkit::ZoneClient::new(&http, &root, "com.apple.reminders", p.clone());
+ let zc =
+ quince_icloud::cloudkit::ZoneClient::new(&http, &root, "com.apple.reminders", p.clone());
let walk = zc.all_records("Reminders", None).await?;
let mut n = 0;
for r in walk.records.iter().filter(|r| r["recordType"] == "List") {
- if r["fields"]["Deleted"]["value"].as_i64() == Some(1) { continue; }
+ if r["fields"]["Deleted"]["value"].as_i64() == Some(1) {
+ continue;
+ }
let name = r["fields"]["Name"]["value"].as_str().unwrap_or("");
if name.starts_with("Quince ") && name.ends_with("test") {
let guid = r["recordName"].as_str().unwrap_or("");