Fix warning on rust stable

This commit is contained in:
Louis Dureuil 2023-12-20 17:48:09 +01:00
parent 6ff81de401
commit 0bf879fb88
No known key found for this signature in database

View File

@ -67,12 +67,12 @@ pub fn check_set<T>(
} }
impl EmbeddingSettings { impl EmbeddingSettings {
pub const SOURCE: &str = "source"; pub const SOURCE: &'static str = "source";
pub const MODEL: &str = "model"; pub const MODEL: &'static str = "model";
pub const REVISION: &str = "revision"; pub const REVISION: &'static str = "revision";
pub const API_KEY: &str = "apiKey"; pub const API_KEY: &'static str = "apiKey";
pub const DIMENSIONS: &str = "dimensions"; pub const DIMENSIONS: &'static str = "dimensions";
pub const DOCUMENT_TEMPLATE: &str = "documentTemplate"; pub const DOCUMENT_TEMPLATE: &'static str = "documentTemplate";
pub fn allowed_sources_for_field(field: &'static str) -> &'static [EmbedderSource] { pub fn allowed_sources_for_field(field: &'static str) -> &'static [EmbedderSource] {
match field { match field {