diff options
author | Ryan Leckey <leckey.ryan@gmail.com> | 2017-06-22 09:07:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-22 09:07:09 -0700 |
commit | 04d3ee8f70337e4899932b92262fbeec2dbb1bd9 (patch) | |
tree | eb27f9c733d755f15b26a6baa0aaee48a52470b0 | |
parent | 4b40c7dc5cbe928631b7ebd17c187328a0eac047 (diff) | |
parent | a9cc3ad0bacc3fcd473fb3ccf468cd30a05b7574 (diff) |
Merge pull request #33 from Anthony25/parsing_error
Parsing errors even for non required files
-rw-r--r-- | src/file/mod.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/file/mod.rs b/src/file/mod.rs index d19f973..7fc25c8 100644 --- a/src/file/mod.rs +++ b/src/file/mod.rs @@ -95,11 +95,6 @@ impl<T: FileSource> Source for File<T> { } }); - if result.is_err() && !self.required { - // Ignore fails and just go with it if its not required - Ok(HashMap::new()) - } else { - result - } + result } } |