mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-25 14:53:34 +00:00
style: run cargo fmt to fix formatting
https://claude.ai/code/session_01Nv2TJ3so5WQqpRUcirAhT3
This commit is contained in:
@@ -1874,7 +1874,10 @@ async fn send_notification(
|
||||
let message = match summary {
|
||||
Some(s) => {
|
||||
let sanitized = sanitize_summary(s);
|
||||
format!("{} *Routine '{}'*: {}\n\n{}", icon, routine_name, label, sanitized)
|
||||
format!(
|
||||
"{} *Routine '{}'*: {}\n\n{}",
|
||||
icon, routine_name, label, sanitized
|
||||
)
|
||||
}
|
||||
None => format!("{} *Routine '{}'*: {}", icon, routine_name, label),
|
||||
};
|
||||
@@ -2595,7 +2598,10 @@ mod tests {
|
||||
result.len() <= 503,
|
||||
"Truncated summary should be at most 503 bytes (500 + '...')"
|
||||
);
|
||||
assert!(result.ends_with("..."), "Truncated summary should end with ellipsis");
|
||||
assert!(
|
||||
result.ends_with("..."),
|
||||
"Truncated summary should end with ellipsis"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -2604,7 +2610,10 @@ mod tests {
|
||||
|
||||
assert_eq!(status_display_label(RunStatus::Ok), "Completed");
|
||||
assert_eq!(status_display_label(RunStatus::Failed), "Failed");
|
||||
assert_eq!(status_display_label(RunStatus::Attention), "Needs attention");
|
||||
assert_eq!(
|
||||
status_display_label(RunStatus::Attention),
|
||||
"Needs attention"
|
||||
);
|
||||
assert_eq!(status_display_label(RunStatus::Running), "Running");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user