Diffstat (limited to 'src/walk.rs')
| -rw-r--r-- | src/walk.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/walk.rs b/src/walk.rs index b24a9a3..9eda9d8 100644 --- a/src/walk.rs +++ b/src/walk.rs @@ -1,7 +1,7 @@ // pub mod protocols; // pub mod walkers; -use crate::protocol::Implementer; +use crate::protocol::Visitor; /// A type that can be walked. pub trait Walk<'ctx>: Sized { @@ -30,5 +30,5 @@ pub trait Walker<'ctx> { /// Walk the value. /// /// The walker should send data to the `visitor` as it walks the value. - fn walk(self, visitor: &mut dyn Implementer<'ctx>) -> Result<Self::Output, Self::Error>; + fn walk(self, visitor: Visitor<'_, 'ctx>) -> Result<Self::Output, Self::Error>; } |