Skip to content

Commit 3f85151

Browse files
committed
Set Whisper.finalize_log_callback visibility to private
1 parent 86604aa commit 3f85151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/ruby/ext/ruby_whisper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void Init_whisper() {
152152
rb_define_singleton_method(mWhisper, "lang_str", ruby_whisper_s_lang_str, 1);
153153
rb_define_singleton_method(mWhisper, "lang_str_full", ruby_whisper_s_lang_str_full, 1);
154154
rb_define_singleton_method(mWhisper, "log_set", ruby_whisper_s_log_set, 2);
155-
rb_define_singleton_method(mWhisper, "finalize_log_callback", ruby_whisper_s_finalize_log_callback, 1);
155+
rb_define_private_method(rb_singleton_class(mWhisper), "finalize_log_callback", ruby_whisper_s_finalize_log_callback, 1);
156156

157157
init_ruby_whisper_context(&mWhisper);
158158
init_ruby_whisper_params(&mWhisper);

0 commit comments

Comments
 (0)