Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
nag763 committed May 16, 2024
1 parent bc683d5 commit 8a2b661
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tchatchers_back/src/api/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// Copyright ⓒ 2022 LABEYE Loïc
// This tool is distributed under the MIT License, check out [here](https://github.com/nag763/tchatchers/blob/main/LICENSE.MD).

use crate::extractor::Bincode;
use crate::extractor::JwtUserExtractor;
use crate::extractor::ModeratorExtractor;
use crate::extractor::Bincode;
use crate::extractor::ValidBincode;
use crate::AppState;
use crate::REFRESH_TOKEN_PATH;
Expand Down
5 changes: 4 additions & 1 deletion tchatchers_core/src/api_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ pub enum ApiGenericResponse {
ByteRejection(String),
#[response(status=BAD_REQUEST, error("serialization_error"))]
#[from_err(bincode::Error)]
#[cfg_attr(feature = "back", from_err(jsonwebtoken::errors::Error, serde_json::Error))]
#[cfg_attr(
feature = "back",
from_err(jsonwebtoken::errors::Error, serde_json::Error)
)]
SerializationError(String),
#[response(status=BAD_REQUEST, errors("validation_error"))]
ValidationError(Vec<String>),
Expand Down

0 comments on commit 8a2b661

Please sign in to comment.