Skip to content

Commit

Permalink
Merge pull request #2205 from OffchainLabs/fix-static-mut-warn
Browse files Browse the repository at this point in the history
Fix new rust warning about static mut references
  • Loading branch information
joshuacolvin0 committed Mar 27, 2024
2 parents bf01c86 + e4b8027 commit f93d2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arbitrator/wasm-libraries/go-stub/src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ 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) = PENDING_EVENT.clone() {
let id = DynamicObjectPool::singleton()
.insert(DynamicObject::PendingEvent(event.clone()));
.insert(DynamicObject::PendingEvent(event));
return GoValue::Object(id);
} else {
return GoValue::Null;
Expand Down

0 comments on commit f93d2c3

Please sign in to comment.