mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
Make clippy happy
This commit is contained in:
parent
0258659278
commit
419922e475
@ -228,7 +228,7 @@ impl Index<'_> {
|
|||||||
pub async fn update_distinct_attribute(&self, value: Value) -> (Value, StatusCode) {
|
pub async fn update_distinct_attribute(&self, value: Value) -> (Value, StatusCode) {
|
||||||
let url = format!(
|
let url = format!(
|
||||||
"/indexes/{}/settings/{}",
|
"/indexes/{}/settings/{}",
|
||||||
encode(self.uid.as_ref()).to_string(),
|
encode(self.uid.as_ref()),
|
||||||
"distinct-attribute"
|
"distinct-attribute"
|
||||||
);
|
);
|
||||||
self.service.put(url, value).await
|
self.service.put(url, value).await
|
||||||
@ -237,7 +237,7 @@ impl Index<'_> {
|
|||||||
pub async fn get_distinct_attribute(&self) -> (Value, StatusCode) {
|
pub async fn get_distinct_attribute(&self) -> (Value, StatusCode) {
|
||||||
let url = format!(
|
let url = format!(
|
||||||
"/indexes/{}/settings/{}",
|
"/indexes/{}/settings/{}",
|
||||||
encode(self.uid.as_ref()).to_string(),
|
encode(self.uid.as_ref()),
|
||||||
"distinct-attribute"
|
"distinct-attribute"
|
||||||
);
|
);
|
||||||
self.service.get(url).await
|
self.service.get(url).await
|
||||||
|
Loading…
Reference in New Issue
Block a user