Remove packed_struct dependency; closes #1271 and #1284 (#1282)

This commit is contained in:
Andrew Brown
2019-12-12 17:01:31 -08:00
committed by GitHub
parent af64187ec7
commit d4df756acf
5 changed files with 253 additions and 92 deletions

View File

@@ -100,7 +100,7 @@ impl<'builder> RecipeGroup<'builder> {
/// Given a sequence of opcode bytes, compute the recipe name prefix and encoding bits.
fn decode_opcodes(op_bytes: &[u8], rrr: u16, w: u16) -> (&'static str, u16) {
let enc = EncodingBits::new(op_bytes, rrr, w);
(enc.prefix.recipe_name_prefix(), enc.bits())
(enc.prefix().recipe_name_prefix(), enc.bits())
}
/// Given a snippet of Rust code (or None), replace the `PUT_OP` macro with the