From 1ac24d88ecd2001dc49688afcf6f93944ff60e96 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 14 Apr 2019 19:47:41 +0200 Subject: Naming nitpick --- dhall/src/imports.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dhall/src') diff --git a/dhall/src/imports.rs b/dhall/src/imports.rs index 0078040..3972e0e 100644 --- a/dhall/src/imports.rs +++ b/dhall/src/imports.rs @@ -52,12 +52,12 @@ fn load_import( f: &Path, import_cache: &mut ImportCache, ) -> Result, Error> { - Ok(resolve_expr_imports(Parsed::parse_file(f)?, import_cache)? + Ok(do_resolve_expr(Parsed::parse_file(f)?, import_cache)? .typecheck()? .normalize()) } -fn resolve_expr_imports<'a>( +fn do_resolve_expr<'a>( Parsed(expr, root): Parsed<'a>, import_cache: &mut ImportCache, ) -> Result, ImportError> { @@ -76,7 +76,7 @@ fn resolve_expr_imports<'a>( Ok(Resolved(rc(expr))) } -fn resolve_expr<'a>( +fn skip_resolve_expr<'a>( Parsed(expr, _root): Parsed<'a>, ) -> Result, ImportError> { let resolve = @@ -112,11 +112,11 @@ impl<'a> Parsed<'a> { } pub fn resolve(self) -> Result, ImportError> { - crate::imports::resolve_expr_imports(self, &mut HashMap::new()) + crate::imports::do_resolve_expr(self, &mut HashMap::new()) } #[allow(dead_code)] pub fn skip_resolve(self) -> Result, ImportError> { - crate::imports::resolve_expr(self) + crate::imports::skip_resolve_expr(self) } } -- cgit v1.2.3