Diffstat (limited to 'src/protocol.rs')
| -rw-r--r-- | src/protocol.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol.rs b/src/protocol.rs index 822d827..60db903 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -84,8 +84,8 @@ impl<'a, 'ctx> DerefMut for DynVisitor<'a, 'ctx> { pub struct DynWalker<'a, 'ctx>(pub &'a mut (dyn AnyTrait<'ctx> + Send + Sync + 'a)); impl<'a, 'ctx> DynWalker<'a, 'ctx> { - pub fn cast<'b>(&'b mut self) -> DynVisitor<'b, 'ctx> { - DynVisitor(&mut *self.0) + pub fn cast<'b>(&'b mut self) -> DynWalker<'b, 'ctx> { + DynWalker(&mut *self.0) } } |