fix most of the index module

This commit is contained in:
Tamo 2022-09-07 20:30:33 +02:00 committed by Clément Renault
parent d8b8e04ad1
commit a7aa92df5f
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
7 changed files with 45 additions and 19 deletions

View file

@ -1,6 +1,8 @@
use milli::heed;
use thiserror::Error;
use crate::index;
#[derive(Error, Debug)]
pub enum Error {
#[error("Index `{}` not found", .0)]
@ -13,6 +15,8 @@ pub enum Error {
Heed(#[from] heed::Error),
#[error(transparent)]
Milli(#[from] milli::Error),
#[error("{0}")]
IndexError(#[from] index::error::IndexError),
#[error(transparent)]
Anyhow(#[from] anyhow::Error),