mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-10 22:56:28 +00:00
write the compat layer from v2 to v3
This commit is contained in:
@ -40,7 +40,7 @@ impl CompatV4ToV5 {
|
||||
}
|
||||
|
||||
pub fn indexes(&self) -> Result<Box<dyn Iterator<Item = Result<CompatIndexV4ToV5>> + '_>> {
|
||||
let indexes = match self {
|
||||
Ok(match self {
|
||||
CompatV4ToV5::V4(v4) => Box::new(
|
||||
v4.indexes()?
|
||||
.map(|index| index.map(CompatIndexV4ToV5::from)),
|
||||
@ -53,8 +53,7 @@ impl CompatV4ToV5 {
|
||||
.map(|index| index.map(CompatIndexV4ToV5::from)),
|
||||
)
|
||||
as Box<dyn Iterator<Item = Result<CompatIndexV4ToV5>> + '_>,
|
||||
};
|
||||
Ok(indexes)
|
||||
})
|
||||
}
|
||||
|
||||
pub fn tasks(
|
||||
|
Reference in New Issue
Block a user