Skip to content

Commit 81d74df

Browse files
committed
Fix clippy warnings
1 parent e4bad3a commit 81d74df

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/indexes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ impl<Http: HttpClient> Index<Http> {
535535
Error::MeilisearchCommunication(MeilisearchCommunicationError {
536536
status_code: error.status_code,
537537
url: error.url,
538-
message: Some(format!("{}.", MEILISEARCH_VERSION_HINT)),
538+
message: Some(format!("{MEILISEARCH_VERSION_HINT}.")),
539539
})
540540
}
541541
Error::Meilisearch(error) => Error::Meilisearch(MeilisearchError {

src/request.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,7 @@ pub fn parse_response<Output: DeserializeOwned>(
122122
};
123123
}
124124

125-
warn!(
126-
"Expected response code {}, got {}",
127-
expected_status_code, status_code
128-
);
125+
warn!("Expected response code {expected_status_code}, got {status_code}");
129126

130127
match from_str::<MeilisearchError>(body) {
131128
Ok(e) => Err(Error::from(e)),

0 commit comments

Comments
 (0)