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 0c8e690675
commit 1a20ef2a79
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
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(