diff --git a/Cargo.lock b/Cargo.lock index a55b159..5e1cee4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "aho-corasick" version = "0.7.18" @@ -728,7 +730,7 @@ dependencies = [ [[package]] name = "tera-cli" -version = "0.1.0" +version = "0.1.1" dependencies = [ "assert_cmd", "clap", diff --git a/Cargo.toml b/Cargo.toml index a42009c..90dc1ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ authors = ["chevdor "] edition = "2018" name = "tera-cli" -version = "0.1.0" +version = "0.1.1" description = "A command line utility written in Rust to render templates from json|toml|yaml && ENV, using the tera templating engine" readme = "README.md" license = "MIT" diff --git a/src/wrapped_context.rs b/src/wrapped_context.rs index ad5ed23..1004c65 100644 --- a/src/wrapped_context.rs +++ b/src/wrapped_context.rs @@ -31,7 +31,7 @@ impl WrappedContext { pub fn append_json(&mut self, str: &str) { debug!("Appending json"); let json = str.parse::().expect("Parse json"); - let object = json.as_object().unwrap(); + let object = json.as_object().expect("Json object expected"); for (k, v) in object.iter() { self.handle_collision("json", k, v);