removed leading _ from var name

This commit is contained in:
Franklin 2023-01-24 17:57:55 -04:00
parent 6733e07a4f
commit 72a11741b8
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ use proc_macro::TokenStream;
#[proc_macro_attribute]
pub fn authenticated_route(_: TokenStream, mut input: TokenStream) -> TokenStream {
let tt_to_add = TokenStream::from(quote::quote!{
let __header_conversion_result: dev_dtos::dtos::user::user_dtos::UserAuthHeader = match serde_json::from_str(match request.headers().get("authentication") {
let header_conversion_result: dev_dtos::dtos::user::user_dtos::UserAuthHeader = match serde_json::from_str(match request.headers().get("authentication") {
Some(auth_header) => match auth_header.to_str() {
Ok(string) => string,
Err(_) => return actix_web_utils::extensions::typed_response::TypedHttpResponse::return_standard_error(400, err::MessageResource::new_from_str("Auth header in incorrect format.")),