From cab75190e86e8fd4ccc209499c0e7f300a669022 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Tue, 11 Feb 2020 13:33:17 +0000 Subject: Simplify ExprKind visitor --- dhall/src/syntax/ast/expr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dhall/src/syntax/ast/expr.rs') diff --git a/dhall/src/syntax/ast/expr.rs b/dhall/src/syntax/ast/expr.rs index 722630f..512010a 100644 --- a/dhall/src/syntax/ast/expr.rs +++ b/dhall/src/syntax/ast/expr.rs @@ -1,5 +1,5 @@ use crate::syntax::map::{DupTreeMap, DupTreeSet}; -use crate::syntax::visitor::{self, ExprKindVisitor}; +use crate::syntax::visitor; use crate::syntax::*; pub type Integer = isize; @@ -176,7 +176,7 @@ impl ExprKind { &'a self, visit: impl FnMut(Option<&'a Label>, &'a SE) -> Result, ) -> Result, Err> { - visitor::TraverseRefMaybeBinderVisitor(visit).visit(self) + visitor::visit_ref(self, visit) } pub fn traverse_ref_with_special_handling_of_binders<'a, SE2, Err>( -- cgit v1.2.3