Skip to content

Commit 1d299fd

Browse files
committed
Fix linting errors
1 parent 9f2e427 commit 1d299fd

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ mod tests {
14241424
*/
14251425
// ==> executing the action without enough right
14261426
let mut no_right_key = KeyBuilder::new();
1427-
no_right_key.with_name(&format!("{name}_1"));
1427+
no_right_key.with_name(format!("{name}_1"));
14281428
let no_right_key = client.create_key(no_right_key).await.unwrap();
14291429

14301430
// backup the master key for cleanup at the end of the test

src/errors.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ pub enum Error {
6868

6969
#[derive(Debug, Clone, Deserialize, Error)]
7070
#[serde(rename_all = "camelCase")]
71-
7271
pub struct MeilisearchCommunicationError {
7372
pub status_code: u16,
7473
pub message: Option<String>,

src/search.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub struct Filter<'a> {
2121

2222
impl<'a> Filter<'a> {
2323
#[must_use]
24-
pub fn new(inner: Either<&'a str, Vec<&'a str>>) -> Filter {
24+
pub fn new(inner: Either<&'a str, Vec<&'a str>>) -> Filter<'a> {
2525
Filter { inner }
2626
}
2727
}
@@ -601,7 +601,7 @@ pub struct MultiSearchQuery<'a, 'b, Http: HttpClient = DefaultHttpClient> {
601601
pub queries: Vec<SearchQuery<'b, Http>>,
602602
}
603603

604-
impl<'a, 'b, Http: HttpClient> Serialize for MultiSearchQuery<'a, 'b, Http> {
604+
impl<Http: HttpClient> Serialize for MultiSearchQuery<'_, '_, Http> {
605605
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
606606
where
607607
S: Serializer,

0 commit comments

Comments
 (0)