Skip to content

Commit

Permalink
Make note about rust-lang/rust#109737
Browse files Browse the repository at this point in the history
  • Loading branch information
novacrazy committed Oct 5, 2024
1 parent a164ec6 commit 40e2239
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/gateway/src/gateway/event/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ pub struct EncodedEvent {
#[derive(Debug)]
pub struct ExternalEvent {
pub msg: ServerMsg,
pub encoded: OnceCell<EncodedEvent>,
pub room_id: Option<RoomId>,

// TODO: Replace with std OnceLock when get_or_try_init is stabilized
// https://github.com/rust-lang/rust/issues/109737
pub encoded: OnceCell<EncodedEvent>,
}

/// Actual event enum
Expand Down

0 comments on commit 40e2239

Please sign in to comment.