This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user