More work on Rune
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-04-13 10:47:40 +02:00
parent 67b0abe59f
commit 4bc76b0ee4
18 changed files with 166 additions and 67 deletions

View File

@@ -6,9 +6,8 @@ use crate::StringKey;
use hashbrown::HashMap;
use parking_lot::RwLock;
use rune::runtime::{Object, RuntimeContext, Shared, VmError, VmResult};
use rune::{Any, Unit, Value};
use rune::{Unit, Value};
use std::convert::TryFrom;
use std::error::Error;
use std::ops::Deref;
use std::sync::atomic::{AtomicBool, AtomicUsize};
use std::sync::Arc;
@@ -73,7 +72,7 @@ impl Script for RuneScript {
if pars.is_empty() {
return Ok(());
}
let mut write_lock = self.state.write();
let write_lock = self.state.write();
for par in pars {
let key = rune::alloc::string::String::try_from(par.0.str())?;
write_lock