From 5cff435bf6e44bc2e727ccd1872167f64101a6d6 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 21 Feb 2023 07:41:41 +0000 Subject: [PATCH] Add feature flags to Opt structure Resolves: #3469 See also: #2763 --- meilisearch/src/analytics/segment_analytics.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/meilisearch/src/analytics/segment_analytics.rs b/meilisearch/src/analytics/segment_analytics.rs index b3c4b8d07..ffd797a48 100644 --- a/meilisearch/src/analytics/segment_analytics.rs +++ b/meilisearch/src/analytics/segment_analytics.rs @@ -249,6 +249,7 @@ impl From for Infos { // to add analytics when we add a field in the Opt. // Thus we must not insert `..` at the end. let Opt { + #[cfg(features = "metrics")] enable_metrics_route: _, db_path, http_addr,