From dff36eaef45d3c108631442d991f34d619b9dde7 Mon Sep 17 00:00:00 2001 From: Jan Emmens Date: Wed, 29 Apr 2020 11:04:09 +0200 Subject: [PATCH] Fix example not compiling --- meilisearch-core/examples/from_file.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meilisearch-core/examples/from_file.rs b/meilisearch-core/examples/from_file.rs index 2a30d1ce4..fad6f4e3c 100644 --- a/meilisearch-core/examples/from_file.rs +++ b/meilisearch-core/examples/from_file.rs @@ -12,7 +12,7 @@ use serde::{Deserialize, Serialize}; use structopt::StructOpt; use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor}; -use meilisearch_core::{Database, Highlight, ProcessedUpdateResult}; +use meilisearch_core::{Database, DatabaseOptions, Highlight, ProcessedUpdateResult}; use meilisearch_core::settings::Settings; use meilisearch_schema::FieldId; @@ -463,7 +463,7 @@ fn main() -> Result<(), Box> { env_logger::init(); let opt = Command::from_args(); - let database = Database::open_or_create(opt.path())?; + let database = Database::open_or_create(opt.path(), DatabaseOptions::default())?; match opt { Command::Index(command) => index_command(command, database),