From 6f910f89eb9ebc528c677df81405f43b4f01c16c Mon Sep 17 00:00:00 2001 From: janithPet Date: Wed, 15 Jun 2022 22:23:38 +0100 Subject: [PATCH] Ran formatter on the code. --- meilisearch-auth/src/action.rs | 2 +- meilisearch-auth/src/store.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/meilisearch-auth/src/action.rs b/meilisearch-auth/src/action.rs index 5d79fea7c..ef11c3a00 100644 --- a/meilisearch-auth/src/action.rs +++ b/meilisearch-auth/src/action.rs @@ -8,7 +8,7 @@ pub enum Action { All = actions::ALL, #[serde(rename = "search")] Search = actions::SEARCH, - #[serde(rename = "documents.*")] + #[serde(rename = "documents.*")] DocumentsAll = actions::DOCUMENTS_ALL, #[serde(rename = "documents.add")] DocumentsAdd = actions::DOCUMENTS_ADD, diff --git a/meilisearch-auth/src/store.rs b/meilisearch-auth/src/store.rs index 65de64e56..f9d6e7728 100644 --- a/meilisearch-auth/src/store.rs +++ b/meilisearch-auth/src/store.rs @@ -93,7 +93,11 @@ impl HeedAuthStore { } else if key.actions.contains(&Action::DocumentsAll) { // if key.actions.contains.DocumentsAll add all actions related to documents. let mut actions = key.actions.clone(); - actions.append(&mut vec![Action::DocumentsAdd, Action::DocumentsGet, Action::DocumentsDelete]); + actions.append(&mut vec![ + Action::DocumentsAdd, + Action::DocumentsGet, + Action::DocumentsDelete, + ]); actions } else { key.actions.clone()