diff options
author | Nadrieril | 2020-02-11 13:33:17 +0000 |
---|---|---|
committer | Nadrieril | 2020-02-11 13:33:17 +0000 |
commit | cab75190e86e8fd4ccc209499c0e7f300a669022 (patch) | |
tree | b67ec8f94304c757b4dd9f896b266bcea1465071 /dhall/src/syntax/ast/expr.rs | |
parent | 5a2538d174fd36a8ed7f4fa344b9583fc48bd977 (diff) |
Simplify ExprKind visitor
Diffstat (limited to 'dhall/src/syntax/ast/expr.rs')
-rw-r--r-- | dhall/src/syntax/ast/expr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<SE> ExprKind<SE> { &'a self, visit: impl FnMut(Option<&'a Label>, &'a SE) -> Result<SE2, Err>, ) -> Result<ExprKind<SE2>, Err> { - visitor::TraverseRefMaybeBinderVisitor(visit).visit(self) + visitor::visit_ref(self, visit) } pub fn traverse_ref_with_special_handling_of_binders<'a, SE2, Err>( |