Remove redundant pattern match

This commit is contained in:
Brian Carroll 2023-11-04 16:31:21 +00:00
parent 8fe9758460
commit 8636299155
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0

View file

@ -556,7 +556,9 @@ impl<'a> Storage<'a> {
}
StoredValue::Local {
value_type, size, ..
value_type,
size,
local_id,
} => {
use roc_wasm_module::Align::*;
@ -580,9 +582,7 @@ impl<'a> Storage<'a> {
}
};
if let StoredValue::Local { local_id, .. } = to_storage {
code_builder.set_local(local_id);
}
code_builder.set_local(local_id);
}
}
}