summaryrefslogtreecommitdiffstats
path: root/src/file/mod.rs
diff options
context:
space:
mode:
authorRyan Leckey <leckey.ryan@gmail.com>2017-02-07 17:09:41 -0800
committerRyan Leckey <leckey.ryan@gmail.com>2017-02-07 17:09:41 -0800
commit9239ee5c27eb6d87098b10cb8e1f4ea9465d1add (patch)
treef4a3fb1098a94ca1fc148360ab90434c06400b4f /src/file/mod.rs
parent115fe07e2c11aa72e91a5ce9b028ed1c1ff7d806 (diff)
Add path resolution using a strict subset of JSONPath
Diffstat (limited to 'src/file/mod.rs')
-rw-r--r--src/file/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file/mod.rs b/src/file/mod.rs
index e85d082..7e9d1a2 100644
--- a/src/file/mod.rs
+++ b/src/file/mod.rs
@@ -158,7 +158,7 @@ impl File<FileSourceFile> {
source: FileSourceFile {
name: name.into(),
path: None,
- }
+ },
}
}
}
@@ -176,7 +176,7 @@ impl<T: FileSource> File<T> {
impl File<FileSourceFile> {
pub fn path(self, path: &str) -> Self {
- File { source: FileSourceFile { path: Some(path.into()), ..self.source } , ..self }
+ File { source: FileSourceFile { path: Some(path.into()), ..self.source }, ..self }
}
pub fn namespace(self, namespace: &str) -> Self {