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/resolve.rs | |
parent | ec761bbd0de807bf1cb0da9389d714e3d812dd6d (diff) |
Avoid mention of `crate::` outside of top-level imports
Diffstat (limited to 'dhall/src/semantics/phase/resolve.rs')
-rw-r--r-- | dhall/src/semantics/phase/resolve.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dhall/src/semantics/phase/resolve.rs b/dhall/src/semantics/phase/resolve.rs index 5920f82..d0563c0 100644 --- a/dhall/src/semantics/phase/resolve.rs +++ b/dhall/src/semantics/phase/resolve.rs @@ -3,9 +3,10 @@ use std::path::{Path, PathBuf}; use crate::error::{Error, ImportError}; use crate::phase::{Normalized, NormalizedExpr, Parsed, Resolved}; +use crate::syntax; use crate::syntax::{FilePath, ImportLocation, URL}; -type Import = crate::syntax::Import<NormalizedExpr>; +type Import = syntax::Import<NormalizedExpr>; /// A root from which to resolve relative imports. #[derive(Debug, Clone, PartialEq, Eq)] @@ -24,8 +25,8 @@ fn resolve_import( import_stack: &ImportStack, ) -> Result<Normalized, ImportError> { use self::ImportRoot::*; - use crate::syntax::FilePrefix::*; - use crate::syntax::ImportLocation::*; + use syntax::FilePrefix::*; + use syntax::ImportLocation::*; let cwd = match root { LocalDir(cwd) => cwd, }; |