cargo fmt

This commit is contained in:
Louis Dureuil 2023-11-12 21:53:11 +01:00
parent a2d0c73b41
commit 492fc086f0
No known key found for this signature in database
2 changed files with 8 additions and 5 deletions

View file

@ -658,9 +658,11 @@ impl IndexScheduler {
/// If you need to fetch information from or perform an action on all indexes,
/// see the `try_for_each_index` function.
pub fn index(&self, name: &str) -> Result<Index> {
if let Some((current_name, current_index)) = self.currently_updating_index.read().unwrap().as_ref() {
if let Some((current_name, current_index)) =
self.currently_updating_index.read().unwrap().as_ref()
{
if current_name == name {
return Ok(current_index.clone())
return Ok(current_index.clone());
}
}
let rtxn = self.env.read_txn()?;