1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 22:01:47 +03:00

macos: transmute -> MaybeUninit

This commit is contained in:
Wez Furlong 2019-11-08 20:35:23 -08:00
parent ea75474650
commit 86ec66bb6c

View File

@ -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,
}, },
) )