mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-23 15:08:13 +02:00
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:
17 files changed
+690
-207
No files matched your search
+4
-1
@@ -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 }`).
|
||||
|
||||
Reference in new issue
Block a user