summaryrefslogtreecommitdiff
path: root/dhall/src/imports.rs
diff options
context:
space:
mode:
authorNadrieril2019-04-18 16:00:22 +0200
committerNadrieril2019-04-18 16:00:33 +0200
commitd8fb1cc0f5bdf6650424169b3bd841e611924760 (patch)
tree00fa2b45602db3086ed06f31858acd4a00e653ba /dhall/src/imports.rs
parent22aa0081d314453bd1bb607384da3ed983dc4364 (diff)
parenta0458fa3824ac301c8d0c1d7091e10d1468cbf91 (diff)
Merge branch 'cleanup_map_mess'
Closes #83
Diffstat (limited to 'dhall/src/imports.rs')
-rw-r--r--dhall/src/imports.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/dhall/src/imports.rs b/dhall/src/imports.rs
index b6dd80b..e367725 100644
--- a/dhall/src/imports.rs
+++ b/dhall/src/imports.rs
@@ -98,8 +98,8 @@ fn do_resolve_expr<'a>(
}
}
};
- let expr = expr.as_ref().traverse_embed(resolve)?;
- Ok(Resolved(rc(expr)))
+ let expr = expr.traverse_embed(resolve)?;
+ Ok(Resolved(expr))
}
fn skip_resolve_expr(
@@ -109,8 +109,8 @@ fn skip_resolve_expr(
|import: &Import| -> Result<Normalized<'static>, ImportError> {
Err(ImportError::UnexpectedImport(import.clone()))
};
- let expr = expr.as_ref().traverse_embed(&resolve)?;
- Ok(Resolved(rc(expr)))
+ let expr = expr.traverse_embed(resolve)?;
+ Ok(Resolved(expr))
}
impl<'a> Parsed<'a> {