Skip to content

Commit

Permalink
Address clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
AnuthaDev committed Oct 25, 2024
1 parent 2dbade7 commit 72a9784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/router/src/services/authentication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ impl<'a> HeaderMapStruct<'a> {
}
#[cfg(feature = "v2")]
pub fn get_organization_id_from_header(&self) -> RouterResult<id_type::OrganizationId> {
self.get_mandatory_header_value_by_key(headers::X_ORGANIZATION_ID.into())
self.get_mandatory_header_value_by_key(headers::X_ORGANIZATION_ID)
.map(|val| val.to_owned())
.and_then(|organization_id| {
id_type::OrganizationId::wrap(organization_id).change_context(
Expand Down

0 comments on commit 72a9784

Please sign in to comment.