diff options
author | Nadrieril | 2019-05-12 18:44:28 +0200 |
---|---|---|
committer | Nadrieril | 2019-05-12 18:44:44 +0200 |
commit | c2b4a2d9b40efbe4f6cb6fd04f6cb90639f4985f (patch) | |
tree | 02e0f7b57b56f949240cedbdfabac234d9486834 /dhall_syntax/src/core/import.rs | |
parent | 2d1a333d6c1e8571ca91d29333c284104153b0ef (diff) |
Implement binary encoding
Closes #39
Diffstat (limited to '')
-rw-r--r-- | dhall_syntax/src/core/import.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dhall_syntax/src/core/import.rs b/dhall_syntax/src/core/import.rs index 00f293c..fbf2f7b 100644 --- a/dhall_syntax/src/core/import.rs +++ b/dhall_syntax/src/core/import.rs @@ -1,5 +1,3 @@ -use std::path::PathBuf; - /// The beginning of a file path which anchors subsequent path components #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum FilePrefix { @@ -16,7 +14,7 @@ pub enum FilePrefix { /// The location of import (i.e. local vs. remote vs. environment) #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub enum ImportLocation { - Local(FilePrefix, PathBuf), + Local(FilePrefix, Vec<String>), Remote(URL), Env(String), Missing, @@ -26,7 +24,7 @@ pub enum ImportLocation { pub struct URL { pub scheme: Scheme, pub authority: String, - pub path: PathBuf, + pub path: Vec<String>, pub query: Option<String>, pub headers: Option<Box<ImportHashed>>, } |