Diffstat (limited to 'src/protocol/visitor/recoverable.rs')
-rw-r--r--src/protocol/visitor/recoverable.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/protocol/visitor/recoverable.rs b/src/protocol/visitor/recoverable.rs
index 6f76d92..7a2b455 100644
--- a/src/protocol/visitor/recoverable.rs
+++ b/src/protocol/visitor/recoverable.rs
@@ -1,6 +1,6 @@
use crate::{
any::TypeName,
- effect::{Effect, ObjSafe},
+ effect::{Effect, Effective, ErasedEffective},
higher_ranked_type,
hkt::Marker,
protocol::{
@@ -16,7 +16,7 @@ pub trait Recoverable<'ctx, E: Effect> {
fn visit<'a>(
&'a mut self,
scope: DynRecoverableScope<'a, 'ctx, E>,
- ) -> ObjSafe<'a, VisitResult<DynRecoverableScope<'a, 'ctx, E>>, E>;
+ ) -> ErasedEffective<'a, VisitResult<DynRecoverableScope<'a, 'ctx, E>>, E>;
}
pub struct RecoverableProto<E: Effect>(Marker<E>);
@@ -41,7 +41,7 @@ pub trait RecoverableScope<'ctx, E: Effect> {
fn new_walk<'this: 'effect, 'visitor: 'effect, 'effect>(
&'this mut self,
visitor: DynVisitor<'visitor, 'ctx>,
- ) -> ObjSafe<'effect, Status, E>;
+ ) -> ErasedEffective<'effect, Status, E>;
}
pub type DynRecoverableScope<'a, 'ctx, E> =
@@ -70,12 +70,12 @@ impl<E: Effect> HintMeta for RecoverableProto<E> {
pub fn visit_recoverable<'a, 'ctx, E: Effect>(
visitor: DynVisitor<'a, 'ctx>,
scope: DynRecoverableScope<'a, 'ctx, E>,
-) -> ObjSafe<'a, VisitResult<DynRecoverableScope<'a, 'ctx, E>>, E> {
+) -> ErasedEffective<'a, VisitResult<DynRecoverableScope<'a, 'ctx, E>>, E> {
if let Some(object) = visitor.0.upcast_mut::<RecoverableProto<E>>() {
// Allow the visitor to give a hint if it wants.
object.visit(scope)
} else {
// If the visitor doesn't support request hint then we continue.
- E::ready(VisitResult::Skipped(scope)).into()
+ E::ready(VisitResult::Skipped(scope)).into_erased()
}
}