From 67b1837ebd88cf3bff25aef2d536e7cb316eff98 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Mon, 15 Jul 2024 10:28:55 -0600 Subject: better regex construction --- src/system.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/system.rs') diff --git a/src/system.rs b/src/system.rs index 6aebf39..fa44946 100644 --- a/src/system.rs +++ b/src/system.rs @@ -74,8 +74,6 @@ impl System { println!("Autoproxy timeout has expired: {} (last sent), {} (timeout scheduled)", current_last_message.as_secs(), last_message.as_secs()); self.latch_state = None; self.update_status_of_system(); - } else { - println!("Autoproxy timeout called but not expired: {} (last sent), {} (timeout scheduled)", current_last_message.as_secs(), last_message.as_secs()); } } }, @@ -278,12 +276,6 @@ impl crate::config::Member { match self.message_pattern.captures(message.content.as_str()) { None => None, Some(captures) => { - let full_match = captures.get(0).unwrap(); - - if full_match.len() != message.content.len() { - return None - } - match captures.name("content") { None => None, Some(matched_content) => Some(matched_content.as_str()), -- cgit 1.4.1