makes clippy and fmt happy

This commit is contained in:
Tamo 2024-06-05 11:21:06 +02:00
parent d92c173fdc
commit 376b3a19a7
3 changed files with 6 additions and 5 deletions

View file

@ -4,7 +4,8 @@ use std::collections::HashMap;
use serde::{Deserialize, Serialize};
use crate::{vector::parsed_vectors::RESERVED_VECTORS_FIELD_NAME, FieldId, FieldsIdsMap, Weight};
use crate::vector::parsed_vectors::RESERVED_VECTORS_FIELD_NAME;
use crate::{FieldId, FieldsIdsMap, Weight};
#[derive(Debug, Default, Serialize, Deserialize)]
pub struct FieldidsWeightsMap {

View file

@ -656,7 +656,7 @@ pub(crate) fn write_typed_chunk_into_index(
// typed chunks has always at least 1 chunk.
let Some((expected_dimension, embedder_name)) = params else { unreachable!() };
let mut embedding_configs = index.embedding_configs(&wtxn)?;
let mut embedding_configs = index.embedding_configs(wtxn)?;
let index_embedder_config = embedding_configs
.iter_mut()
.find(|IndexEmbeddingConfig { name, .. }| name == &embedder_name)