Files
obiskim/tools/migrate-mphf/src/util.rs
T
Eric Coissac 8b87078478 Implement MPHF migration tool and sparse matrix permutation logic
Refactors sparse matrix handling to implement row permutation logic and introduces a standalone tool for migrating indexes from MPHF 1.x to 2.x formats.
2026-10-15 12:12:51 +02:00

12 lines
281 B
Rust

//! Error adapters: the libraries each have their own error type.
use anyhow::{Result, anyhow};
pub fn sk<T>(r: obiskio::SKResult<T>) -> Result<T> {
r.map_err(|e| anyhow!("{e}"))
}
pub fn oki<T>(r: obikindex::OKIResult<T>) -> Result<T> {
r.map_err(|e| anyhow!("{e}"))
}