From 0c051a8c90ca0f0c1074384ba9e49969b34a427e Mon Sep 17 00:00:00 2001 From: timofey Date: Thu, 6 Jul 2023 03:18:10 +0000 Subject: [PATCH] `FallibleCtx` for `TestContextPlain` --- src/testing.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/testing.rs b/src/testing.rs index d2d404c..363d54e 100644 --- a/src/testing.rs +++ b/src/testing.rs @@ -5,7 +5,7 @@ use std::{error::Error, fmt::Display, rc::Rc}; use sha2::{Digest, Sha256}; -use crate::func::{context::FunctorContext, *}; +use crate::func::{context::*, *}; use crate::rcore::*; use crate::rstd::{cast::*, inject::*, typeless::*}; @@ -68,6 +68,10 @@ impl<'a> FunctorContext<'a> for TestContextPlain { type T = instances::solo::SoloInstance; } +impl<'a> FallibleCtx<'a> for TestContextPlain { + type Fallible = instances::result::ResultFailAny; +} + impl<'a> Context<'a> for TestContextPlain { type _Tm = Self::T;