Once upon a time wabt::Error had no way to access the inner wabt::ErrorKind. In those days, I'd noticed that Error was a struct that contained only an ErrorKind, so this transmute was a hack to get the ErrorKind and the corresponding message so we could print that out while wabt was being tweaked to make this doable safely.
wabt long since has been tweaked to make this doable safely.
Once upon a time
wabt::Error
had no way to access the innerwabt::ErrorKind
. In those days, I'd noticed thatError
was a struct that contained only anErrorKind
, so this transmute was a hack to get theErrorKind
and the corresponding message so we could print that out whilewabt
was being tweaked to make this doable safely.wabt
long since has been tweaked to make this doable safely.