Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl<Http: HttpClient> Client<Http> {
///
/// [1]: https://www.meilisearch.com/docs/learn/multi_search/multi_search_vs_federated_search#what-is-federated-search
#[must_use]
pub fn multi_search(&self) -> MultiSearchQuery<Http> {
pub fn multi_search(&self) -> MultiSearchQuery<'_, '_, Http> {
MultiSearchQuery::new(self)
}

Expand Down
6 changes: 3 additions & 3 deletions src/documents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub struct DocumentQuery<'a, Http: HttpClient> {

impl<'a, Http: HttpClient> DocumentQuery<'a, Http> {
#[must_use]
pub fn new(index: &Index<Http>) -> DocumentQuery<Http> {
pub fn new(index: &Index<Http>) -> DocumentQuery<'_, Http> {
DocumentQuery {
index,
fields: None,
Expand Down Expand Up @@ -200,7 +200,7 @@ pub struct DocumentsQuery<'a, Http: HttpClient> {

impl<'a, Http: HttpClient> DocumentsQuery<'a, Http> {
#[must_use]
pub fn new(index: &Index<Http>) -> DocumentsQuery<Http> {
pub fn new(index: &Index<Http>) -> DocumentsQuery<'_, Http> {
DocumentsQuery {
index,
offset: None,
Expand Down Expand Up @@ -332,7 +332,7 @@ pub struct DocumentDeletionQuery<'a, Http: HttpClient> {

impl<'a, Http: HttpClient> DocumentDeletionQuery<'a, Http> {
#[must_use]
pub fn new(index: &Index<Http>) -> DocumentDeletionQuery<Http> {
pub fn new(index: &Index<Http>) -> DocumentDeletionQuery<'_, Http> {
DocumentDeletionQuery {
index,
filter: None,
Expand Down
6 changes: 3 additions & 3 deletions src/indexes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ impl<Http: HttpClient> Index<Http> {
/// # });
/// ```
#[must_use]
pub fn search(&self) -> SearchQuery<Http> {
pub fn search(&self) -> SearchQuery<'_, Http> {
SearchQuery::new(self)
}

Expand Down Expand Up @@ -1777,7 +1777,7 @@ pub struct IndexUpdater<'a, Http: HttpClient> {
}

impl<'a, Http: HttpClient> IndexUpdater<'a, Http> {
pub fn new(uid: impl AsRef<str>, client: &Client<Http>) -> IndexUpdater<Http> {
pub fn new(uid: impl AsRef<str>, client: &Client<Http>) -> IndexUpdater<'_, Http> {
IndexUpdater {
client,
primary_key: None,
Expand Down Expand Up @@ -1976,7 +1976,7 @@ pub struct IndexesQuery<'a, Http: HttpClient> {

impl<'a, Http: HttpClient> IndexesQuery<'a, Http> {
#[must_use]
pub fn new(client: &Client<Http>) -> IndexesQuery<Http> {
pub fn new(client: &Client<Http>) -> IndexesQuery<'_, Http> {
IndexesQuery {
client,
offset: None,
Expand Down