global: rename some indexes

This commit is contained in:
nym21
2025-06-23 22:00:09 +02:00
parent 589bb02411
commit 0f3c267a48
32 changed files with 1517 additions and 12239 deletions

View File

@@ -42,14 +42,14 @@ where
version = version + VERSION;
let res = Self::import(parent, name, version);
match res {
// Err(Error::DifferentCompressionMode)
// | Err(Error::WrongEndian)
// | Err(Error::WrongLength)
// | Err(Error::DifferentVersion { .. }) => {
// let path = Self::path_(parent, name);
// fs::remove_file(path)?;
// Self::import(parent, name, version)
// }
Err(Error::DifferentCompressionMode)
| Err(Error::WrongEndian)
| Err(Error::WrongLength)
| Err(Error::DifferentVersion { .. }) => {
let path = Self::path_(parent, name);
fs::remove_file(path)?;
Self::import(parent, name, version)
}
_ => res,
}
}