Skip to content

Commit

Permalink
PR comments on naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Dentosal committed Aug 26, 2024
1 parent 8364d5a commit 43172b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fuel-asm/derive/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ pub fn opcode_try_from(instructions: &InstructionList) -> TokenStream {
}
}

pub fn from_op(instructions: &InstructionList) -> TokenStream {
pub fn op_conversions(instructions: &InstructionList) -> TokenStream {
instructions.map_to_tokens(|Instruction { opcode_name, .. }| {
quote! {
impl From<#opcode_name> for [u8; 3] {
Expand Down
4 changes: 2 additions & 2 deletions fuel-asm/derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ pub fn impl_instructions(input: proc_macro::TokenStream) -> proc_macro::TokenStr

let op_structs = codegen::op_structs(&instructions);
let op_debug_impl = codegen::op_debug_impl(&instructions);
let from_op = codegen::from_op(&instructions);
let op_conversions = codegen::op_conversions(&instructions);
let op_constructor_shorthand = codegen::op_constructor_shorthand(&instructions);
let op_fn_new = codegen::op_fn_new(&instructions);
let op_constructors_typescript = codegen::op_constructors_typescript(&instructions);
Expand All @@ -241,7 +241,7 @@ pub fn impl_instructions(input: proc_macro::TokenStream) -> proc_macro::TokenStr
use super::*;
#op_structs
#op_debug_impl
#from_op
#op_conversions
#op_constructor_shorthand
#op_fn_new
#op_constructors_typescript
Expand Down

0 comments on commit 43172b1

Please sign in to comment.