Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Remove a no-longer-necessary transmute (#549)
Browse files Browse the repository at this point in the history
* remove a no-longer-necessary transmute
  • Loading branch information
iximeow authored Jun 15, 2020
1 parent c96ca1c commit d741e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lucetc/src/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn read_bytes(bytes: Vec<u8>) -> Result<Vec<u8>, Error> {
} else {
wat2wasm(bytes).map_err(|err| {
let mut result = format!("wat2wasm error: {}", err);
match unsafe { std::mem::transmute::<wabt::Error, wabt::ErrorKind>(err) } {
match err.kind() {
ErrorKind::Parse(msg) |
// this shouldn't be reachable - we're going the other way
ErrorKind::Deserialize(msg) |
Expand Down

0 comments on commit d741e2e

Please sign in to comment.