remove useless SmallVec dependency, and go insane because it was used with a zero sized array for storage

This commit is contained in:
Milim 2024-08-15 09:02:37 +02:00
parent 23799eeb9e
commit 215a928eb4
No known key found for this signature in database
4 changed files with 2 additions and 167 deletions

View file

@ -3,7 +3,7 @@
use super::engine_models::EngineError;
use serde::{Deserialize, Serialize};
use smallvec::SmallVec;
#[cfg(any(
feature = "use-synonyms-search",
feature = "use-non-static-synonyms-search"
@ -23,7 +23,7 @@ pub struct SearchResult {
/// The description of the search result.
pub description: String,
/// The names of the upstream engines from which this results were provided.
pub engine: SmallVec<[String; 0]>,
pub engine: Vec<String>,
/// The td-tdf score of the result in regards to the title, url and description and the user's query
pub relevance_score: f32,
}