diff --git a/rust/crates/api/src/error.rs b/rust/crates/api/src/error.rs index 60ae1f5f..6c93ee9b 100644 --- a/rust/crates/api/src/error.rs +++ b/rust/crates/api/src/error.rs @@ -135,7 +135,6 @@ impl ApiError { /// Return the `Retry-After` delay if this error came from a 429 response /// that included a `retry-after` header. Callers should prefer this value /// over the computed backoff delay when it exists. - #[must_use] pub fn retry_after(&self) -> Option { match self { Self::Api { retry_after, .. } => *retry_after, diff --git a/rust/crates/rusty-claude-cli/src/main.rs b/rust/crates/rusty-claude-cli/src/main.rs index 417d1e09..ce91f018 100644 --- a/rust/crates/rusty-claude-cli/src/main.rs +++ b/rust/crates/rusty-claude-cli/src/main.rs @@ -11693,6 +11693,7 @@ mod tests { body: String::new(), retryable: false, suggested_action: None, + retry_after: None, }; let rendered = format_user_visible_api_error("session-issue-32", &error); @@ -11728,7 +11729,7 @@ mod tests { retryable: false, suggested_action: None, retry_after: None, -}), + }), }; let rendered = format_user_visible_api_error("session-issue-32", &error);