Skip to content

Fix linting errors #630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2025
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 @@ -1424,7 +1424,7 @@ mod tests {
*/
// ==> executing the action without enough right
let mut no_right_key = KeyBuilder::new();
no_right_key.with_name(&format!("{name}_1"));
no_right_key.with_name(format!("{name}_1"));
let no_right_key = client.create_key(no_right_key).await.unwrap();

// backup the master key for cleanup at the end of the test
Expand Down
1 change: 0 additions & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ pub enum Error {

#[derive(Debug, Clone, Deserialize, Error)]
#[serde(rename_all = "camelCase")]

pub struct MeilisearchCommunicationError {
pub status_code: u16,
pub message: Option<String>,
Expand Down
4 changes: 2 additions & 2 deletions src/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct Filter<'a> {

impl<'a> Filter<'a> {
#[must_use]
pub fn new(inner: Either<&'a str, Vec<&'a str>>) -> Filter {
pub fn new(inner: Either<&'a str, Vec<&'a str>>) -> Filter<'a> {
Filter { inner }
}
}
Expand Down Expand Up @@ -601,7 +601,7 @@ pub struct MultiSearchQuery<'a, 'b, Http: HttpClient = DefaultHttpClient> {
pub queries: Vec<SearchQuery<'b, Http>>,
}

impl<'a, 'b, Http: HttpClient> Serialize for MultiSearchQuery<'a, 'b, Http> {
impl<Http: HttpClient> Serialize for MultiSearchQuery<'_, '_, Http> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down
Loading