Skip to content

Commit

Permalink
Clippy and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
georgbuechner committed Oct 21, 2023
1 parent 2245eea commit 0d00363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search/src/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ mod tests {
("\"limbs branches\"", vec![]),
("\"limbs branches\"~1", vec![2]),
("Bär", vec![1]),
("Bär Hündin", vec![1])
("Bär Hündin", vec![1]),
]);
// one-word search returning 1 result with 1 page
for (search_term, pages) in &test_cases {
Expand All @@ -218,7 +218,7 @@ mod tests {
let doc_results = results.get(TEST_DOC_NAME).unwrap();
assert_eq!(pages.len(), doc_results.len());
for page in pages {
assert!(doc_results.iter().any(|result| result.page == *page));
assert!(doc_results.iter().any(|result| result.page == *page));
}
} else {
assert!(!results.contains_key(TEST_DOC_NAME));
Expand Down

0 comments on commit 0d00363

Please sign in to comment.