Skip to content

Commit

Permalink
refactor: [#445] fix formatting warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-nt committed Feb 20, 2024
1 parent 61388de commit 21f533f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/web/api/server/v1/contexts/settings/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ use crate::web::api::server::v1::responses;
/// This function will return an error if the user does not have permission to
/// view all the settings.
#[allow(clippy::unused_async)]
pub async fn get_all_handler(State(app_data): State<Arc<AppData>>, ExtractLoggedInUser(user_id): ExtractLoggedInUser,) -> Response {
pub async fn get_all_handler(
State(app_data): State<Arc<AppData>>,
ExtractLoggedInUser(user_id): ExtractLoggedInUser,
) -> Response {
let all_settings = match app_data.settings_service.get_all_masking_secrets(&user_id).await {
Ok(all_settings) => all_settings,
Err(error) => return error.into_response(),
Expand Down

0 comments on commit 21f533f

Please sign in to comment.