mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
write the compat layer from v2 to v3
This commit is contained in:
parent
0c8e690675
commit
1a20ef2a79
19 changed files with 1737 additions and 36 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue