From df9d19f6169d5f7f6c75a6a3e023af1a966a3dc5 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 7 May 2023 02:28:27 +0200 Subject: [PATCH] fixed mutable variable --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index cee78b7..2a9d758 100644 --- a/src/config.rs +++ b/src/config.rs @@ -179,7 +179,7 @@ impl Context { .with_timezone(&chrono::Local); let blocktime = set.blocktime; if ipevent.mode == "file".to_string() && self.hostname == ipevent.hostname { - let mut block = self + let block = self .blocklist .entry(ipevent.ipdata.ip.to_string()) .or_insert(BlockIpData {