From 36ab7b3ebdc8418ca36fd84e2e39decab0a5801a Mon Sep 17 00:00:00 2001 From: many Date: Mon, 18 Oct 2021 14:17:32 +0200 Subject: [PATCH] Fix small typo --- meilisearch-lib/src/index_controller/dump_actor/loaders/v2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meilisearch-lib/src/index_controller/dump_actor/loaders/v2.rs b/meilisearch-lib/src/index_controller/dump_actor/loaders/v2.rs index 0a3ffc86a..13d770f6a 100644 --- a/meilisearch-lib/src/index_controller/dump_actor/loaders/v2.rs +++ b/meilisearch-lib/src/index_controller/dump_actor/loaders/v2.rs @@ -70,7 +70,7 @@ fn patch_settings(path: impl AsRef) -> anyhow::Result<()> { // We first deserialize the dump meta into a serde_json::Value and change // the custom ranking rules settings from the old format to the new format. if let Some(ranking_rules) = meta.pointer_mut("/settings/rankingRules") { - patch_custon_ranking_rules(ranking_rules); + patch_custom_ranking_rules(ranking_rules); } let mut meta_file = OpenOptions::new().truncate(true).write(true).open(path)?; @@ -105,7 +105,7 @@ fn patch_updates(dir: impl AsRef, path: impl AsRef) -> anyhow::Resul /// /// This is done for compatibility reasons, and to avoid a new dump version, /// since the new syntax was introduced soon after the new dump version. -fn patch_custon_ranking_rules(ranking_rules: &mut Value) { +fn patch_custom_ranking_rules(ranking_rules: &mut Value) { *ranking_rules = match ranking_rules.take() { Value::Array(values) => values .into_iter()