summaryrefslogtreecommitdiff
path: root/dhall/src/semantics/phase/resolve.rs
diff options
context:
space:
mode:
authorNadrieril2019-12-15 19:56:54 +0000
committerNadrieril2019-12-15 19:56:54 +0000
commit0105e3c31dbb2984e5c4b9d51cc3b27767e7683c (patch)
tree0e0a5eff865529fec1709201d241bd99ca14baba /dhall/src/semantics/phase/resolve.rs
parentec761bbd0de807bf1cb0da9389d714e3d812dd6d (diff)
Avoid mention of `crate::` outside of top-level imports
Diffstat (limited to '')
-rw-r--r--dhall/src/semantics/phase/resolve.rs7
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,
};