fix(search): remove the back and forth between the IndexMap and the serde_json::Map

This is ok because we're using the preserve_order feature in serde_json which is already internally using an IndexMap.
This commit is contained in:
Tamo 2022-04-12 15:22:47 +02:00
parent f67167fa9f
commit 2ee210483f
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
2 changed files with 7 additions and 22 deletions

View file

@ -21,11 +21,11 @@ macro_rules! make_setting_route {
use meilisearch_lib::milli::update::Setting;
use meilisearch_lib::{index::Settings, index_controller::Update, MeiliSearch};
use crate::analytics::Analytics;
use crate::extractors::authentication::{policies::*, GuardedData};
use crate::extractors::sequential_extractor::SeqHandler;
use crate::task::SummarizedTaskView;
use meilisearch_error::ResponseError;
use $crate::analytics::Analytics;
use $crate::extractors::authentication::{policies::*, GuardedData};
use $crate::extractors::sequential_extractor::SeqHandler;
use $crate::task::SummarizedTaskView;
pub async fn delete(
meilisearch: GuardedData<ActionPolicy<{ actions::SETTINGS_UPDATE }>, MeiliSearch>,