Make clippy happy

This commit is contained in:
Clément Renault 2025-05-15 18:16:06 +02:00
parent 7fa74b4931
commit 564f85280c
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
2 changed files with 10 additions and 10 deletions

View file

@ -214,7 +214,7 @@ impl IndexScheduler {
#[cfg(test)]
run_loop_iteration: self.run_loop_iteration.clone(),
features: self.features.clone(),
chat_settings: self.chat_settings.clone(),
chat_settings: self.chat_settings,
}
}
@ -877,12 +877,12 @@ impl IndexScheduler {
pub fn chat_settings(&self) -> Result<Option<serde_json::Value>> {
let rtxn = self.env.read_txn().map_err(Error::HeedTransaction)?;
self.chat_settings.get(&rtxn, &"main").map_err(Into::into)
self.chat_settings.get(&rtxn, "main").map_err(Into::into)
}
pub fn put_chat_settings(&self, settings: &serde_json::Value) -> Result<()> {
let mut wtxn = self.env.write_txn().map_err(Error::HeedTransaction)?;
self.chat_settings.put(&mut wtxn, &"main", &settings)?;
self.chat_settings.put(&mut wtxn, "main", settings)?;
wtxn.commit().map_err(Error::HeedTransaction)?;
Ok(())
}