Skip to content

Commit 30f0adb

Browse files
committed
refactor: inst_meth_id renamed instance_method_id, because it represents the interned symbol "instance_method"
1 parent a3aee16 commit 30f0adb

File tree

1 file changed

+3
-3
lines changed
  • gems/codetracer-ruby-recorder/ext/native_tracer/src

1 file changed

+3
-3
lines changed

gems/codetracer-ruby-recorder/ext/native_tracer/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct Recorder {
4848
to_s_id: ID,
4949
local_variables_id: ID,
5050
local_variable_get_id: ID,
51-
inst_meth_id: ID,
51+
instance_method_id: ID,
5252
parameters_id: ID,
5353
class_id: ID,
5454
to_a_id: ID,
@@ -189,7 +189,7 @@ unsafe extern "C" fn ruby_recorder_alloc(klass: VALUE) -> VALUE {
189189
to_s_id: rb_intern!("to_s"),
190190
local_variables_id: rb_intern!("local_variables"),
191191
local_variable_get_id: rb_intern!("local_variable_get"),
192-
inst_meth_id: rb_intern!("instance_method"),
192+
instance_method_id: rb_intern!("instance_method"),
193193
parameters_id: rb_intern!("parameters"),
194194
class_id: rb_intern!("class"),
195195
to_a_id: rb_intern!("to_a"),
@@ -571,7 +571,7 @@ unsafe fn collect_parameter_values(
571571
if rb_method_boundp(defined_class, mid, 0) == 0 {
572572
return Vec::new();
573573
}
574-
let method_obj = rb_funcall(defined_class, recorder.inst_meth_id, 1, method_sym);
574+
let method_obj = rb_funcall(defined_class, recorder.instance_method_id, 1, method_sym);
575575
let params_ary = rb_funcall(method_obj, recorder.parameters_id, 0);
576576
if !RB_TYPE_P(params_ary, rb_sys::ruby_value_type::RUBY_T_ARRAY) {
577577
return Vec::new();

0 commit comments

Comments
 (0)