Skip to content

Commit

Permalink
chore(formatting): Fixed formatting mistakes (#1646)
Browse files Browse the repository at this point in the history
fixed formatting mistakes have sneaked into prod

Co-authored-by: CommanderStorm <[email protected]>
  • Loading branch information
github-actions[bot] and CommanderStorm authored Nov 3, 2024
1 parent acc62c1 commit 2c18ac1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions server/src/search/search_executor/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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)]
Expand Down

0 comments on commit 2c18ac1

Please sign in to comment.