Serveur Rust : formatage et corrections clippy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013qMexTfVRaegbPAgsagCAJ
This commit is contained in:
Claude committed 2026-10-12 17:24:14 +00:00
1 parent 73e4a4c822
commit 9d14b2a5f0
17 files changed
+690 -207

No files matched your search

+4 -1
View File
@@ -16,7 +16,10 @@ pub type ApiResult<T = Response> = Result<T, AppError>;
impl AppError {
/// Réponse `{ error: message }` avec le statut donné.
pub fn new(status: StatusCode, message: impl Into<String>) -> Self {
Self { status, body: json!({ "error": message.into() }) }
Self {
status,
body: json!({ "error": message.into() }),
}
}
/// Corps JSON libre (ex. `{ success: false, error }`).