mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Make clippy happy
This commit is contained in:
parent
976075578f
commit
bf76d4a43c
8 changed files with 22 additions and 22 deletions
|
@ -205,7 +205,7 @@ impl Index {
|
|||
|
||||
// Set the primary key if not set already, ignore if already set.
|
||||
if let (None, Some(primary_key)) = (self.primary_key(txn)?, primary_key) {
|
||||
let mut builder = UpdateBuilder::new(0).settings(txn, &self);
|
||||
let mut builder = UpdateBuilder::new(0).settings(txn, self);
|
||||
builder.set_primary_key(primary_key.to_string());
|
||||
builder.execute(|_, _| ())?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue