Diffstat (limited to 'src/walk.rs')
-rw-r--r--src/walk.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/walk.rs b/src/walk.rs
index 2ebe598..fa8ec4b 100644
--- a/src/walk.rs
+++ b/src/walk.rs
@@ -1,4 +1,4 @@
-// pub mod walkers;
+pub mod walkers;
use crate::protocol::{ControlFlowFor, Effect, Visitor};
@@ -22,7 +22,7 @@ pub fn into_walker<'ctx, T: Walk<'ctx>>(value: T) -> T::Walker {
/// - Call [Self::walk()] to walk the value. Data will be sent to the provided
/// visitor.
pub trait Walker<'ctx> {
- type Effect: Effect<'ctx, Self::Output, Self::Error> + Effect<'ctx, (), ()>;
+ type Effect: Effect<'ctx, Self::Output, Self::Error> + Effect<'ctx>;
type Error;
@@ -38,5 +38,5 @@ pub trait Walker<'ctx> {
fn walk<'a>(
self,
visitor: Visitor<'a, 'ctx, Self::Effect>,
- ) -> ControlFlowFor<'a, 'ctx, Self::Effect, Self::Output, Self::Error>;
+ ) -> ControlFlowFor<'a, 'ctx, Self::Effect, Self::Output, Self::Error> where Self: 'a, 'ctx: 'a;
}