mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
Format the code
This commit is contained in:
@ -91,8 +91,10 @@ impl HeedAuthStore {
|
|||||||
Action::All => {
|
Action::All => {
|
||||||
actions.extend(enum_iterator::all::<Action>());
|
actions.extend(enum_iterator::all::<Action>());
|
||||||
actions.remove(&Action::AllGet);
|
actions.remove(&Action::AllGet);
|
||||||
},
|
}
|
||||||
Action::AllGet => actions.extend(enum_iterator::all::<Action>().filter(|a| a.is_read())),
|
Action::AllGet => {
|
||||||
|
actions.extend(enum_iterator::all::<Action>().filter(|a| a.is_read()))
|
||||||
|
}
|
||||||
Action::DocumentsAll => {
|
Action::DocumentsAll => {
|
||||||
actions.extend(
|
actions.extend(
|
||||||
[Action::DocumentsGet, Action::DocumentsDelete, Action::DocumentsAdd]
|
[Action::DocumentsGet, Action::DocumentsDelete, Action::DocumentsAdd]
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
use crate::common::{shared_does_not_exists_index, Server};
|
use crate::common::{shared_does_not_exists_index, Server};
|
||||||
|
|
||||||
use crate::json;
|
use crate::json;
|
||||||
|
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
|
Reference in New Issue
Block a user