Skip to content

Commit

Permalink
Fix deprecated filter warning message (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
granddaifuku authored Dec 11, 2023
1 parent 9a56dcf commit 2956212
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lock/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl LockedConfig {
warnings.push(Error::msg(
"use of deprecated filter `get` in [templates], please use the `?.` operator \
instead.\nFor example: `{{ hooks | get: \"pre\" | nl }}` can be written `{{ \
hook?.pre | nl }}`",
hooks?.pre | nl }}`",
));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testdata/deprecated_get_filter/source.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ UNLOCKED ~/.local/share/sheldon/plugins.lock
RENDERED test

WARNING: use of deprecated filter `get` in [templates], please use the `?.` operator instead.
For example: `{{ hooks | get: "pre" | nl }}` can be written `{{ hook?.pre | nl }}`
For example: `{{ hooks | get: "pre" | nl }}` can be written `{{ hooks?.pre | nl }}`

0 comments on commit 2956212

Please sign in to comment.