Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif-m committed Nov 22, 2024
1 parent 2adabf2 commit 82c4acf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/router/src/core/recon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use masking::{ExposeInterface, PeekInterface, Secret};
#[cfg(feature = "email")]
use crate::{consts, services::email::types as email_types, types::domain};
use crate::{
core::errors::{self, RouterResponse, UserResponse},
core::errors::{self, RouterResponse, UserResponse, UserErrors},
services::{api as service_api, authentication},
types::{
api::{self as api_types, enums},
Expand Down Expand Up @@ -204,7 +204,7 @@ pub async fn verify_recon_token(
let acl = user_with_role.role_info.get_recon_acl();
let optional_acl_str = serde_json::to_string(&acl)
.inspect_err(|err| router_env::logger::error!("Failed to serialize acl to string: {}", err))
.change_context(errors::UserErrors::InternalServerError)
.change_context(UserErrors::InternalServerError)
.attach_printable("Failed to serialize acl to string. Using empty ACL")
.ok();

Expand Down

0 comments on commit 82c4acf

Please sign in to comment.