diff --git a/meilisearch-http/src/main.rs b/meilisearch-http/src/main.rs index a71f431f6..d189eecb9 100644 --- a/meilisearch-http/src/main.rs +++ b/meilisearch-http/src/main.rs @@ -7,7 +7,6 @@ use meilisearch_http::data::Data; use meilisearch_http::helpers::NormalizePath; use meilisearch_http::option::Opt; use meilisearch_http::{create_app, index_update_callback}; - use structopt::StructOpt; mod analytics; diff --git a/meilisearch-http/src/option.rs b/meilisearch-http/src/option.rs index 5cd001a68..264e33253 100644 --- a/meilisearch-http/src/option.rs +++ b/meilisearch-http/src/option.rs @@ -12,7 +12,7 @@ use structopt::StructOpt; const POSSIBLE_ENV: [&str; 2] = ["development", "production"]; -#[derive(Debug, Clone, StructOpt)] +#[derive(Debug, Default, Clone, StructOpt)] pub struct Opt { /// The destination where the database must be created. #[structopt(long, env = "MEILI_DB_PATH", default_value = "./data.ms")] diff --git a/meilisearch-http/tests/common.rs b/meilisearch-http/tests/common.rs index 1da7a1ec4..b53b35bf1 100644 --- a/meilisearch-http/tests/common.rs +++ b/meilisearch-http/tests/common.rs @@ -31,8 +31,7 @@ impl Server { main_map_size: default_db_options.main_map_size, update_map_size: default_db_options.update_map_size, http_payload_size_limit: 10000000, - ssl_key_path: None, - ssl_cert_path:None, + ..Opt::default() }; let data = Data::new(opt.clone());