refactor(router): appstate as trait in authentication (#588)

This commit is contained in:
Rachit Naithani
2023-02-14 12:30:08 +05:30
committed by GitHub
parent 6c2a1fea9a
commit eaf98e66bc
2 changed files with 32 additions and 18 deletions

View File

@ -64,7 +64,7 @@ pub mod error_parser {
}
}
pub(crate) fn custom_json_error_handler(err: JsonPayloadError, _req: &HttpRequest) -> Error {
pub fn custom_json_error_handler(err: JsonPayloadError, _req: &HttpRequest) -> Error {
actix_web::error::Error::from(CustomJsonError { err })
}
}