From a6ab0b4ef675f9f072192013f9e316bc1dad047f Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 21 Mar 2021 23:40:23 +0100 Subject: [PATCH] Remove unneeded lifetime annotations --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9defde9..d39ddbd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,7 +70,7 @@ fn replace_parameter(input: &str, data: &serde_json::Value) -> Result { Ok(result.join("")) } -fn execute_hook<'a>(name: &'a str, hook: &'a Hook, data: &'a serde_json::Value) -> Result<()> { +fn execute_hook(name: &str, hook: &Hook, data: &serde_json::Value) -> Result<()> { debug!("Running hook `{}`", name); for (filter_name, filter) in hook.filters.iter() {