Export locked_read.

This commit is contained in:
Stephen Chung 2022-06-17 23:36:09 +08:00
parent 8f716ab71a
commit b592ac1599
2 changed files with 3 additions and 3 deletions

View File

@ -22,8 +22,8 @@ pub use hashing::{
combine_hashes, get_hasher, combine_hashes, get_hasher,
}; };
pub use native::{ pub use native::{
locked_write, shared_make_mut, shared_take, shared_take_or_clone, shared_try_take, FnAny, locked_read, locked_write, shared_make_mut, shared_take, shared_take_or_clone, shared_try_take,
FnPlugin, IteratorFn, Locked, NativeCallContext, SendSync, Shared, FnAny, FnPlugin, IteratorFn, Locked, NativeCallContext, SendSync, Shared,
}; };
pub use plugin::PluginFunction; pub use plugin::PluginFunction;
pub use register::RegisterNativeFunction; pub use register::RegisterNativeFunction;

View File

@ -2,7 +2,7 @@
#![cfg(not(target_family = "wasm"))] #![cfg(not(target_family = "wasm"))]
use crate::eval::GlobalRuntimeState; use crate::eval::GlobalRuntimeState;
use crate::func::native::{locked_read, locked_write}; use crate::func::{locked_read, locked_write};
use crate::{ use crate::{
Engine, Identifier, Module, ModuleResolver, Position, RhaiResultOf, Scope, Shared, ERR, Engine, Identifier, Module, ModuleResolver, Position, RhaiResultOf, Scope, Shared, ERR,
}; };