From 113c1ee2b5cbe9be20c06c4d7a28c88715f3127f Mon Sep 17 00:00:00 2001 From: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com> Date: Sun, 3 Nov 2024 01:23:27 +0000 Subject: [PATCH] fixed formatting mistakes have sneaked into prod --- server/src/search/search_executor/mod.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/server/src/search/search_executor/mod.rs b/server/src/search/search_executor/mod.rs index cacd3c658..73f91c792 100644 --- a/server/src/search/search_executor/mod.rs +++ b/server/src/search/search_executor/mod.rs @@ -1,6 +1,6 @@ -use std::fmt::{Debug, Formatter}; use meilisearch_sdk::client::Client; use serde::Serialize; +use std::fmt::{Debug, Formatter}; use tracing::error; use crate::limited::vec::LimitedVec; @@ -28,16 +28,15 @@ impl Debug for ResultsSection { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { let mut base = f.debug_set(); for i in 0..=3 { - if let Some(e)=self.entries.get(i) { + if let Some(e) = self.entries.get(i) { base.entry(e); - } + } } - if self.entries.len() > 3 { + if self.entries.len() > 3 { base.entry(&"..."); } base.finish() } - } #[derive(Serialize, Default, Debug, Clone)]