From 83f0d8e32cff5ba7c86838bc0a6057aa952f1526 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sat, 14 Oct 2023 19:00:33 -0400 Subject: Add TODO to investigate usefulness of load_class() --- src/rules/classes.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rules/classes.rs b/src/rules/classes.rs index 75fdf5c..5078849 100644 --- a/src/rules/classes.rs +++ b/src/rules/classes.rs @@ -25,6 +25,7 @@ lazy_static! { pub static ref CLASSES: HashMap = load_classes(); } +// TODO: Is this actually needed? Is there a real race condition this is avoiding? fn load_classes() -> HashMap { let yaml_data = include_str!("../data/rules/classes.yaml"); serde_yaml::from_str(yaml_data).expect("Failed to parse classes YAML") -- cgit v1.2.3