mirror of
https://github.com/wez/wezterm.git
synced 2024-12-25 14:22:37 +03:00
macos: transmute -> MaybeUninit
This commit is contained in:
parent
ea75474650
commit
86ec66bb6c
@ -126,10 +126,10 @@ impl ConnectionOps for Connection {
|
|||||||
0,
|
0,
|
||||||
timer_callback::<F>,
|
timer_callback::<F>,
|
||||||
&mut CFRunLoopTimerContext {
|
&mut CFRunLoopTimerContext {
|
||||||
copyDescription: std::mem::transmute(0usize),
|
copyDescription: std::mem::MaybeUninit::zeroed().assume_init(),
|
||||||
info: callback as _,
|
info: callback as _,
|
||||||
release: release_callback::<F>,
|
release: release_callback::<F>,
|
||||||
retain: std::mem::transmute(0usize),
|
retain: std::mem::MaybeUninit::zeroed().assume_init(),
|
||||||
version: 0,
|
version: 0,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user