FallibleContext imply FallibleCtx

This commit is contained in:
AF 2023-07-06 03:39:49 +00:00
parent 58a2cd3ca6
commit 7c1fc8bacd

View File

@ -10,7 +10,7 @@ use super::*;
///
/// Until either Rust type system or [`crate::func`] take serious changes,
/// this is the preferred way to switch between [Wrapped] and [fallible].
pub trait FallibleContext<'a>: Context<'a> {
pub trait FallibleContext<'a>: FallibleCtx<'a> {
/// Convert a fallible wrapped into a wrapped result.
fn unstuff<A: 'a, E: 'a>(wa: FallibleWrapped<'a, Self, A, E>) -> WrapC<'a, Result<A, E>, Self> {
<Self as FallibleCtx<'a>>::Fallible::unstuff(wa)