Skip to content

Commit

Permalink
update to handlebars v5
Browse files Browse the repository at this point in the history
  • Loading branch information
campeis authored and christian-schilling committed Feb 21, 2024
1 parent 1133f58 commit 3859640
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 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 josh-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bitvec = "1.0.1"
git-version = "0.3.5"
git2 = { workspace = true }
glob = "0.3.1"
handlebars = "4.4.0"
handlebars = "5.1.1"
hex = "0.4.3"
indoc = "2.0.4"
itertools = "0.11.0"
Expand Down
4 changes: 2 additions & 2 deletions josh-core/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ impl handlebars::HelperDef for GraphQLHelper {
_: &handlebars::Handlebars,
_: &handlebars::Context,
rc: &mut handlebars::RenderContext,
) -> Result<handlebars::ScopedJson<'reg, 'rc>, handlebars::RenderError> {
) -> Result<handlebars::ScopedJson<'rc>, handlebars::RenderError> {
return Ok(handlebars::ScopedJson::Derived(
self.josh_helper(
h.hash(),
rc.get_current_template_name().unwrap_or(&"/".to_owned()),
)
.map_err(|e| handlebars::RenderError::new(format!("{}", e)))?,
.map_err(|e| handlebars::RenderErrorReason::Other(format!("{}", e)))?,
));
}
}
Expand Down

0 comments on commit 3859640

Please sign in to comment.