From cf4c3c287b887bb0e0150abdf3f3e6784e43fbab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 8 Jan 2025 16:20:33 +0100 Subject: [PATCH] Make rustfmt happy --- crates/meilisearch/src/analytics/segment_analytics.rs | 3 ++- crates/meilisearch/src/routes/metrics.rs | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) 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;