fmt: cargo fmt sweep across drifted files

No behavior change — purely whitespace/line-break cleanup that had
accumulated since the last format run.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cameron Cordes
2026-05-07 16:42:41 -04:00
parent 2a273a3ed9
commit b42acbb3f3
6 changed files with 39 additions and 39 deletions

View File

@@ -1773,8 +1773,7 @@ Return ONLY the summary, nothing else."#,
let has_date = args.get("date").is_some()
|| args.get("start_ts").is_some()
|| args.get("end_ts").is_some();
let has_contact = args.get("contact").is_some()
|| args.get("contact_id").is_some();
let has_contact = args.get("contact").is_some() || args.get("contact_id").is_some();
if has_date || has_contact {
return "Error: search_messages needs a 'query' (keywords/phrase). \
To fetch messages around a date or from a contact without keywords, \
@@ -1815,7 +1814,13 @@ Return ONLY the summary, nothing else."#,
log::info!(
"tool_search_messages: query='{}', mode={}, contact_id={:?}, range=[{:?}, {:?}], user_limit={}, fetch_limit={}",
query, mode, contact_id, start_ts, end_ts, user_limit, fetch_limit
query,
mode,
contact_id,
start_ts,
end_ts,
user_limit,
fetch_limit
);
let hits = match self
@@ -1857,7 +1862,11 @@ Return ONLY the summary, nothing else."#,
"Found {} messages (mode: {}{}):\n\n",
filtered.len(),
mode,
if has_date_filter { ", date-filtered" } else { "" }
if has_date_filter {
", date-filtered"
} else {
""
}
));
for h in filtered {
let date = chrono::DateTime::from_timestamp(h.date, 0)
@@ -3006,7 +3015,7 @@ Return ONLY the summary, nothing else."#,
Some(s) if !s.trim().is_empty() => s.trim().to_string(),
_ => String::from(
"You are reconstructing a memory from a photo. Use the gathered \
context to write a thoughtful summary; you decide voice, length, and shape."
context to write a thoughtful summary; you decide voice, length, and shape.",
),
};