Skip to content

Commit

Permalink
Fixed renaming not working on methods
Browse files Browse the repository at this point in the history
  • Loading branch information
DelSkayn committed Jul 10, 2023
1 parent 4d72f7d commit a97ca8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macro/src/method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl JsMethod {
if self.parse_attrs.skip {
return TokenStream::new();
}
let func_name_str = self.function.name.to_string();
let func_name_str = self.name();
let js_func_name = self.function.expand_carry_type_name(common);
quote! {
#object_name.set(#func_name_str,<#self_ty>::#js_func_name)?;
Expand Down

0 comments on commit a97ca8a

Please sign in to comment.