From 9a33acb55f876195826c8301121600aa84a5a181 Mon Sep 17 00:00:00 2001 From: RA <70325462+RAprogramm@users.noreply.github.com> Date: Thu, 11 Sep 2025 14:23:46 +0700 Subject: [PATCH] docs: record recent changes --- CHANGELOG.md | 4 ++++ src/response.rs | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f626d9d..027a43e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. ### Added - `ErrorResponse::with_retry_after_duration` helper for specifying retry advice via `Duration`. +### Changed +- `AppError::log` now includes the stable `code` field alongside `kind`. +- `AppError` stores messages as `Cow<'static, str>` to avoid unnecessary allocations. + ## [0.3.3] - 2025-09-11 ### Added - `ErrorResponse::status_code()` exposing validated `StatusCode`. diff --git a/src/response.rs b/src/response.rs index edd79fe..f4acb46 100644 --- a/src/response.rs +++ b/src/response.rs @@ -61,7 +61,8 @@ use std::{ borrow::Cow, - fmt::{Display, Formatter, Result as FmtResult} + fmt::{Display, Formatter, Result as FmtResult}, + time::Duration }; use http::StatusCode;