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.
12 lines
281 B
Rust
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}"))
|
|
}
|