From a88db09e37142d055c155716a3592fa31d3ef377 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Sat, 30 Nov 2024 10:26:37 -0800 Subject: [PATCH] don't use lazy_static (opt dep) in lookup_format --- parser/src/json/formats.rs | 78 +++++++++++++++----------------------- 1 file changed, 30 insertions(+), 48 deletions(-) diff --git a/parser/src/json/formats.rs b/parser/src/json/formats.rs index 3ec381c3..911972b6 100644 --- a/parser/src/json/formats.rs +++ b/parser/src/json/formats.rs @@ -1,50 +1,32 @@ -use lazy_static::lazy_static; -use std::collections::HashMap; - -lazy_static! { - static ref FORMAT_PATTERNS: HashMap<&'static str, &'static str> = { - HashMap::from([ - ( - "date-time", - r"(?P[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]))[tT](?P