Apply suggestions from code review

Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
Louis Dureuil 2025-04-29 16:03:30 +02:00 committed by GitHub
parent c5360bcdbf
commit 20d0aa499a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ impl IndexScheduler {
let index_version = index.get_version(&index_wtxn)?.unwrap_or((1, 12, 0));
let package_version = (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
if index_version != (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH) {
if index_version != package_version {
return Err(Error::IndexVersionMismatch {
index: index_uid,
index_version,

View File

@ -1,5 +1,5 @@
use meilisearch_types::milli::progress::{Progress, VariableNameStep};
use meilisearch_types::milli::{self};
use meilisearch_types::milli;
use crate::{Error, IndexScheduler, Result};