event_monitor: Replace unsound static mut MONITOR

See discussion in https://github.com/rust-lang/rust/issues/53639.
This came up during an internal review.

Signed-off-by: Christian Blichmann <cblichmann@google.com>
(cherry picked from commit 88f3537b47)
Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Christian Blichmann
2023-09-14 11:19:12 +02:00
committed by Bo Chen
parent 9f316b2e50
commit ab18a923f1
3 changed files with 10 additions and 6 deletions

1
Cargo.lock generated
View File

@@ -312,6 +312,7 @@ name = "event_monitor"
version = "0.1.0"
dependencies = [
"libc",
"once_cell",
"serde",
"serde_json",
]