From e2abe50c03b76b9aeb732b0928cc244a0130c201 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 16 Nov 2021 19:23:06 +0530 Subject: [PATCH] config: add optional name attribute to matchers --- src/config.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config.rs b/src/config.rs index 4132296..bf7aeab 100644 --- a/src/config.rs +++ b/src/config.rs @@ -12,6 +12,8 @@ pub struct Replacements { #[derive(Clone, Debug, Deserialize)] pub struct Substitutor { + #[serde(default)] + pub name: String, pub matcher: Matcher, pub action: Action, }