pleco-rs / Pleco

A Rust-based re-write of the Stockfish Chess Engine
https://crates.io/crates/pleco
GNU General Public License v3.0
365 stars 37 forks source link

Replace mem::uninitialized() with mem::MaybeUninit::uninit().assume_init() #133

Closed MakotoE closed 1 year ago

MakotoE commented 3 years ago

Fixes https://github.com/sfleischman105/Pleco/issues/132.

This does not substitute for using safe alternatives over unsafe but it at least allows the code to run. Here's the docs for core::mem::uninitialized.

chase-manning commented 1 year ago

Thanks for the PR! This has been implemented now in another PR 😄