This commit is contained in:
Jaroslaw Konik 2025-05-23 19:12:27 +02:00
parent e8b95f6099
commit 9bcf3ee589

View file

@ -386,9 +386,7 @@ impl Runtime for RubyRuntime {
Vec<RubyValue>, Vec<RubyValue>,
) )
-> Result<crate::promise::Promise<(), RubyValue>, crate::ScriptingError> -> Result<crate::promise::Promise<(), RubyValue>, crate::ScriptingError>
+ Send + Send,
+ Sync
+ 'static,
>; >;
static RUBY_CALLBACKS: LazyLock<Mutex<HashMap<String, CallbackClosure>>> = static RUBY_CALLBACKS: LazyLock<Mutex<HashMap<String, CallbackClosure>>> =
LazyLock::new(|| Mutex::new(HashMap::new())); LazyLock::new(|| Mutex::new(HashMap::new()));