no panic in thread

This commit is contained in:
Jaroslaw Konik 2025-05-10 10:18:55 +02:00
parent f3bcacbf14
commit 0a9dc09b0c

View file

@ -177,7 +177,7 @@ impl Runtime for RubyRuntime {
) -> Result<Self::Value, crate::ScriptingError> {
let name = name.to_string();
RUBY_THREAD.execute_in(Box::new(move |ruby| {
let _: magnus::Value = ruby.class_object().funcall(name, ()).unwrap();
let _: Result<magnus::Value, _> = ruby.class_object().funcall(name, ());
RubyValue(())
}));