From 0bf879fb889711a1d57cbd5788a6bc790ac987f3 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Wed, 20 Dec 2023 17:48:09 +0100 Subject: [PATCH] Fix warning on rust stable --- milli/src/vector/settings.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/milli/src/vector/settings.rs b/milli/src/vector/settings.rs index 945fc62c0..37fb80452 100644 --- a/milli/src/vector/settings.rs +++ b/milli/src/vector/settings.rs @@ -67,12 +67,12 @@ pub fn check_set( } impl EmbeddingSettings { - pub const SOURCE: &str = "source"; - pub const MODEL: &str = "model"; - pub const REVISION: &str = "revision"; - pub const API_KEY: &str = "apiKey"; - pub const DIMENSIONS: &str = "dimensions"; - pub const DOCUMENT_TEMPLATE: &str = "documentTemplate"; + pub const SOURCE: &'static str = "source"; + pub const MODEL: &'static str = "model"; + pub const REVISION: &'static str = "revision"; + pub const API_KEY: &'static str = "apiKey"; + pub const DIMENSIONS: &'static str = "dimensions"; + pub const DOCUMENT_TEMPLATE: &'static str = "documentTemplate"; pub fn allowed_sources_for_field(field: &'static str) -> &'static [EmbedderSource] { match field {