diff options
author | Nadrieril | 2019-12-15 19:56:54 +0000 |
---|---|---|
committer | Nadrieril | 2019-12-15 19:56:54 +0000 |
commit | 0105e3c31dbb2984e5c4b9d51cc3b27767e7683c (patch) | |
tree | 0e0a5eff865529fec1709201d241bd99ca14baba /dhall/src/semantics/phase/mod.rs | |
parent | ec761bbd0de807bf1cb0da9389d714e3d812dd6d (diff) |
Avoid mention of `crate::` outside of top-level imports
Diffstat (limited to '')
-rw-r--r-- | dhall/src/semantics/phase/mod.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dhall/src/semantics/phase/mod.rs b/dhall/src/semantics/phase/mod.rs index 918c4d0..9f38308 100644 --- a/dhall/src/semantics/phase/mod.rs +++ b/dhall/src/semantics/phase/mod.rs @@ -1,13 +1,11 @@ use std::fmt::Display; use std::path::Path; -use crate::syntax::{Builtin, Const, Expr}; - use crate::core::value::{ToExprOptions, Value}; use crate::core::valuef::ValueF; use crate::core::var::{AlphaVar, Shift, Subst}; use crate::error::{EncodeError, Error, ImportError, TypeError}; - +use crate::syntax::{Builtin, Const, Expr}; use resolve::ImportRoot; pub(crate) mod binary; @@ -62,7 +60,7 @@ impl Parsed { } pub fn encode(&self) -> Result<Vec<u8>, EncodeError> { - crate::phase::binary::encode(&self.0) + binary::encode(&self.0) } } @@ -172,7 +170,7 @@ impl Typed { impl Normalized { pub fn encode(&self) -> Result<Vec<u8>, EncodeError> { - crate::phase::binary::encode(&self.to_expr()) + binary::encode(&self.to_expr()) } pub(crate) fn to_expr(&self) -> NormalizedExpr { |