Map a redb error into our crate error with context.
(ctx: &str, e: E)
| 16 | |
| 17 | /// Map a redb error into our crate error with context. |
| 18 | pub(super) fn redb_err<E: std::fmt::Display>(ctx: &str, e: E) -> crate::Error { |
| 19 | crate::Error::Storage { |
| 20 | engine: "sparse".into(), |
| 21 | detail: format!("{ctx}: {e}"), |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | std::thread_local! { |
| 26 | static KEY_BUF: std::cell::RefCell<String> = std::cell::RefCell::new(String::with_capacity(256)); |
no outgoing calls
no test coverage detected