diff options
author | garlic-hub <12842269+garlic-hub@users.noreply.github.com> | 2024-03-08 10:46:24 -0800 |
---|---|---|
committer | garlic-hub <12842269+garlic-hub@users.noreply.github.com> | 2024-03-08 10:46:24 -0800 |
commit | 0788c43c3fcd61f0d3a3807d250563739d6ed371 (patch) | |
tree | f62fc247bfd87e4b1509dc3866ce65de359d9db3 /src/exec/token.rs | |
parent | 3b2fd158b5ef4ba5f8cccddc2d2efb1de24b6c47 (diff) |
Clean up clippy warnings
Diffstat (limited to 'src/exec/token.rs')
-rw-r--r-- | src/exec/token.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exec/token.rs b/src/exec/token.rs index 2dc37ce..b96c3a3 100644 --- a/src/exec/token.rs +++ b/src/exec/token.rs @@ -41,7 +41,7 @@ pub(super) fn tokenize(input: &str) -> ArgumentTemplate { let mut remaining = input; let mut buf = String::new(); let placeholders = PLACEHOLDERS.get_or_init(|| { - AhoCorasick::new(&["{{", "}}", "{}", "{/}", "{//}", "{.}", "{/.}"]).unwrap() + AhoCorasick::new(["{{", "}}", "{}", "{/}", "{//}", "{.}", "{/.}"]).unwrap() }); while let Some(m) = placeholders.find(remaining) { match m.pattern().as_u32() { |