Remove unneeded lifetime annotations

This commit is contained in:
finga 2021-03-21 23:40:23 +01:00
parent 82b308f8cf
commit a6ab0b4ef6

View file

@ -70,7 +70,7 @@ fn replace_parameter(input: &str, data: &serde_json::Value) -> Result<String> {
Ok(result.join("")) 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); debug!("Running hook `{}`", name);
for (filter_name, filter) in hook.filters.iter() { for (filter_name, filter) in hook.filters.iter() {