Skip to content

Commit

Permalink
deps: update handlebars to 0.30 (XAMPPRocky#179)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
  • Loading branch information
Igor Gnatenko authored and Aaronepower committed Jan 25, 2018
1 parent 672179e commit 39cd9d6
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 13 deletions.
38 changes: 30 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ lto=true
[build-dependencies]
serde_json = "1"
ignore = "0.3"
handlebars = "0.29"
handlebars = "0.30"
lazy_static = "1"

[dependencies]
Expand Down
8 changes: 4 additions & 4 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fn generate_languages(out_dir: &OsStr) {
h
};

let json: Value = {
let json: Value = {
let json = File::open(&"languages.json").expect("Cant open json");
serde_json::from_reader(json).expect("Can't parse json")
};
Expand All @@ -33,9 +33,9 @@ fn generate_languages(out_dir: &OsStr) {
.expect("Can't find Template");
let mut output_file = File::create(&output).expect("Can't create output");

if let Err(err) = handlebars.template_renderw2(&mut source_template,
&json,
&mut output_file)
if let Err(err) = handlebars.render_template_source_to_write(&mut source_template,
&json,
&mut output_file)
{
panic!("Failed to generate languages! ERROR: {:?}", err);
}
Expand Down

0 comments on commit 39cd9d6

Please sign in to comment.