Skip to content

Commit

Permalink
feat: handlebars 6 (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 authored Dec 3, 2024
1 parent c0516ce commit 6a526a8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
25 changes: 20 additions & 5 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ clap = { version = "4.0.26", features = ["derive"] }
clap_complete = "4.0.5"
crossterm = "0.25.0"
diff = "0.1.*"
handlebars = "5.*"
handlebars = "6.*"
hostname = "0.3.*"
log = "0.4.*"
maplit = "1.*"
Expand All @@ -37,7 +37,7 @@ scripting = ["handlebars/script_helper"]
watch = ["watchexec", "watchexec-events", "watchexec-filterer-tagged"]

[dependencies.handlebars_misc_helpers]
version = "0.15.*"
version = "0.17.*"
default-features = false
features = ["string", "json"]

Expand Down
2 changes: 1 addition & 1 deletion src/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl<'a> RealActionRunner<'a> {
}
}

impl<'a> ActionRunner for RealActionRunner<'a> {
impl ActionRunner for RealActionRunner<'_> {
fn delete_symlink(&mut self, source: &Path, target: &Path) -> Result<bool> {
delete_symlink(source, target, self.fs, self.force)
}
Expand Down
3 changes: 1 addition & 2 deletions src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,7 @@ fn compare_template(target_state: FileState, cache_state: FileState) -> Template
}
}

/// === Utility functions ===
// === Utility functions ===
pub fn real_path(path: &Path) -> Result<PathBuf, io::Error> {
let path = std::fs::canonicalize(path)?;
Ok(platform_dunce(&path))
Expand Down

0 comments on commit 6a526a8

Please sign in to comment.