Skip to content

Commit b20a19e

Browse files
committed
Format
1 parent a4d4a9e commit b20a19e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/search.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,10 +652,10 @@ impl<'a, Http: HttpClient> SearchQuery<'a, Http> {
652652
}
653653

654654
/// Use a custom vector to perform a search query
655-
///
655+
///
656656
/// `vector` is mandatory when performing searches with `userProvided` embedders.
657657
/// You may also use `vector` to override an embedder’s automatic vector generation.
658-
///
658+
///
659659
/// `vector` dimensions must match the dimensions of the embedder.
660660
pub fn with_vector<'b>(&'b mut self, vector: &'a [f32]) -> &'b mut SearchQuery<'a, Http> {
661661
self.vector = Some(vector);
@@ -1723,7 +1723,11 @@ mod tests {
17231723
.with_vector(&vectorize(true, 0))
17241724
.execute()
17251725
.await?;
1726-
let ids = results.hits.iter().map(|hit| hit.result.id).collect::<Vec<_>>();
1726+
let ids = results
1727+
.hits
1728+
.iter()
1729+
.map(|hit| hit.result.id)
1730+
.collect::<Vec<_>>();
17271731
assert_eq!(ids, vec![0, 3, 4, 5, 6, 7, 8, 9, 1, 2]);
17281732

17291733
Ok(())

0 commit comments

Comments
 (0)