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
View File
@@ -6,5 +6,6 @@ edition = "2021"
[dependencies]
libc = "0.2.138"
once_cell = "1.16.0"
serde = { version = "1.0.150", features = ["rc", "derive"] }
serde_json = "1.0.89"