add is_not_found functor to error; tweak status code matcher

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-09-12 00:01:25 +00:00 committed by strawberry
commit f7ce4db0b0
3 changed files with 30 additions and 7 deletions
src/core

View file

@ -2,7 +2,11 @@ mod debug_inspect;
mod log_debug_err;
mod log_err;
mod map_expect;
mod not_found;
pub use self::{debug_inspect::DebugInspect, log_debug_err::LogDebugErr, log_err::LogErr, map_expect::MapExpect};
pub use self::{
debug_inspect::DebugInspect, log_debug_err::LogDebugErr, log_err::LogErr, map_expect::MapExpect,
not_found::NotFound,
};
pub type Result<T = (), E = crate::Error> = std::result::Result<T, E>;