no panic in thread
This commit is contained in:
parent
f3bcacbf14
commit
0a9dc09b0c
1 changed files with 1 additions and 1 deletions
|
|
@ -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(())
|
||||
}));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue