diff --git a/crates/meilisearch/src/analytics/segment_analytics.rs b/crates/meilisearch/src/analytics/segment_analytics.rs index ecb887374..9d187a52c 100644 --- a/crates/meilisearch/src/analytics/segment_analytics.rs +++ b/crates/meilisearch/src/analytics/segment_analytics.rs @@ -427,7 +427,8 @@ impl Segment { ) { // Replace the version number with the prototype name if any. let version = build_info::DescribeResult::from_build() - .and_then(|describe| describe.as_prototype()).unwrap_or(env!("CARGO_PKG_VERSION")); + .and_then(|describe| describe.as_prototype()) + .unwrap_or(env!("CARGO_PKG_VERSION")); let _ = self .batcher diff --git a/crates/meilisearch/src/routes/metrics.rs b/crates/meilisearch/src/routes/metrics.rs index 192164288..03a1923ca 100644 --- a/crates/meilisearch/src/routes/metrics.rs +++ b/crates/meilisearch/src/routes/metrics.rs @@ -1,7 +1,3 @@ -use crate::extractors::authentication::policies::ActionPolicy; -use crate::extractors::authentication::{AuthenticationError, GuardedData}; -use crate::routes::create_all_stats; -use crate::search_queue::SearchQueue; use actix_web::http::header; use actix_web::web::{self, Data}; use actix_web::HttpResponse; @@ -14,6 +10,11 @@ use prometheus::{Encoder, TextEncoder}; use time::OffsetDateTime; use utoipa::OpenApi; +use crate::extractors::authentication::policies::ActionPolicy; +use crate::extractors::authentication::{AuthenticationError, GuardedData}; +use crate::routes::create_all_stats; +use crate::search_queue::SearchQueue; + #[derive(OpenApi)] #[openapi(paths(get_metrics))] pub struct MetricApi;