From fd1f3697d5c9379f291f96ea8f7d04f554bf129a Mon Sep 17 00:00:00 2001 From: Ethen Pociask Date: Thu, 30 May 2024 13:15:51 -0400 Subject: [PATCH] feat(CI): Fix arbitrator compile err --- arbitrator/wasm-libraries/go-stub/src/value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arbitrator/wasm-libraries/go-stub/src/value.rs b/arbitrator/wasm-libraries/go-stub/src/value.rs index 3a015bbf7..50e968724 100644 --- a/arbitrator/wasm-libraries/go-stub/src/value.rs +++ b/arbitrator/wasm-libraries/go-stub/src/value.rs @@ -164,7 +164,7 @@ pub unsafe fn get_field(source: u32, field: &[u8]) -> GoValue { } } else if source == GO_ID { if field == b"_pendingEvent" { - if let Some(event) = &PENDING_EVENT { + if let Some(event) = unsafe { &*addr_of!(PENDING_EVENT) } { let id = DynamicObjectPool::singleton() .insert(DynamicObject::PendingEvent(event.clone())); return GoValue::Object(id);