write the compat layer from v2 to v3

This commit is contained in:
Tamo
2022-10-10 14:32:11 +02:00
committed by Clément Renault
parent 6107540ad4
commit 06fadb3004
19 changed files with 1737 additions and 36 deletions

View File

@ -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(