From ed661174ba0e8e0b25ad79c5e7ff29a15d6dff50 Mon Sep 17 00:00:00 2001 From: m00nwtchr Date: Sat, 25 May 2024 15:41:32 +0200 Subject: [PATCH] Fix formatting --- src/results/aggregator.rs | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/results/aggregator.rs b/src/results/aggregator.rs index 2bc09b1..7d2cb56 100644 --- a/src/results/aggregator.rs +++ b/src/results/aggregator.rs @@ -291,15 +291,15 @@ mod tests { }, )); map_to_be_filtered.push(( - "https://www.rust-lang.org/".to_owned(), - SearchResult { - title: "Rust Programming Language".to_owned(), - url: "https://www.rust-lang.org/".to_owned(), - description: "A systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety.".to_owned(), - engine: smallvec!["Google".to_owned(), "DuckDuckGo".to_owned()], - relevance_score: 0.0, - }, ) - ); + "https://www.rust-lang.org/".to_owned(), + SearchResult { + title: "Rust Programming Language".to_owned(), + url: "https://www.rust-lang.org/".to_owned(), + description: "A systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety.".to_owned(), + engine: smallvec!["Google".to_owned(), "DuckDuckGo".to_owned()], + relevance_score: 0.0, + }, ) + ); // Create a temporary file with regex patterns let mut file = NamedTempFile::new()?; @@ -342,15 +342,15 @@ mod tests { }, )); map_to_be_filtered.push(( - "https://www.rust-lang.org/".to_owned(), - SearchResult { - title: "Rust Programming Language".to_owned(), - url: "https://www.rust-lang.org/".to_owned(), - description: "A systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety.".to_owned(), - engine: smallvec!["Google".to_owned(), "DuckDuckGo".to_owned()], - relevance_score: 0.0, - }, - )); + "https://www.rust-lang.org/".to_owned(), + SearchResult { + title: "Rust Programming Language".to_owned(), + url: "https://www.rust-lang.org/".to_owned(), + description: "A systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety.".to_owned(), + engine: smallvec!["Google".to_owned(), "DuckDuckGo".to_owned()], + relevance_score: 0.0, + }, + )); // Create a temporary file with a regex pattern containing a wildcard let mut file = NamedTempFile::new()?;