Make clippy happy

This commit is contained in:
Kerollmops 2022-06-02 13:38:23 +02:00
parent 0258659278
commit 419922e475
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -228,7 +228,7 @@ impl Index<'_> {
pub async fn update_distinct_attribute(&self, value: Value) -> (Value, StatusCode) {
let url = format!(
"/indexes/{}/settings/{}",
encode(self.uid.as_ref()).to_string(),
encode(self.uid.as_ref()),
"distinct-attribute"
);
self.service.put(url, value).await
@ -237,7 +237,7 @@ impl Index<'_> {
pub async fn get_distinct_attribute(&self) -> (Value, StatusCode) {
let url = format!(
"/indexes/{}/settings/{}",
encode(self.uid.as_ref()).to_string(),
encode(self.uid.as_ref()),
"distinct-attribute"
);
self.service.get(url).await