Wrap a redb-side failure as `crate::Error::Storage` with engine context.
(ctx: &str, e: impl std::fmt::Display)
| 22 | |
| 23 | /// Wrap a redb-side failure as `crate::Error::Storage` with engine context. |
| 24 | pub(super) fn inverted_err(ctx: &str, e: impl std::fmt::Display) -> crate::Error { |
| 25 | crate::Error::Storage { |
| 26 | engine: "inverted".into(), |
| 27 | detail: format!("{ctx}: {e}"), |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | /// Identity adapter so callers can `.map_err(into_result_err)` without |
| 32 | /// importing the type — kept as a function so future error widening (e.g. |
no outgoing calls
no test coverage detected