Fix unconnected inspect_log traits in Result utils.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-09-28 23:31:41 +00:00
parent 63e2cfa21b
commit 95435ffe98
2 changed files with 17 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ mod and_then_ref;
mod debug_inspect;
mod filter;
mod flat_ok;
mod inspect_log;
mod into_is_ok;
mod log_debug_err;
mod log_err;
@@ -12,9 +13,18 @@ mod unwrap_infallible;
mod unwrap_or_err;
pub use self::{
and_then_ref::AndThenRef, debug_inspect::DebugInspect, filter::Filter, flat_ok::FlatOk,
into_is_ok::IntoIsOk, log_debug_err::LogDebugErr, log_err::LogErr, map_expect::MapExpect,
map_ref::MapRef, not_found::NotFound, unwrap_infallible::UnwrapInfallible,
and_then_ref::AndThenRef,
debug_inspect::DebugInspect,
filter::Filter,
flat_ok::FlatOk,
inspect_log::{ErrDebugLog, ErrLog},
into_is_ok::IntoIsOk,
log_debug_err::LogDebugErr,
log_err::LogErr,
map_expect::MapExpect,
map_ref::MapRef,
not_found::NotFound,
unwrap_infallible::UnwrapInfallible,
unwrap_or_err::UnwrapOrErr,
};

View File

@@ -9,9 +9,11 @@ pub trait ErrLog<T, E>
where
E: fmt::Display,
{
#[must_use]
fn log_err(self, level: Level) -> Self;
#[inline]
#[must_use]
fn err_log(self) -> Self
where
Self: Sized,
@@ -24,9 +26,11 @@ pub trait ErrDebugLog<T, E>
where
E: fmt::Debug,
{
#[must_use]
fn log_err_debug(self, level: Level) -> Self;
#[inline]
#[must_use]
fn err_debug_log(self) -> Self
where
Self: Sized,