From b592ac15998d77f02e7f230d6294b6244e916e1e Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 17 Jun 2022 23:36:09 +0800 Subject: [PATCH] Export locked_read. --- src/func/mod.rs | 4 ++-- src/module/resolvers/file.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/func/mod.rs b/src/func/mod.rs index f4779861..d47e7186 100644 --- a/src/func/mod.rs +++ b/src/func/mod.rs @@ -22,8 +22,8 @@ pub use hashing::{ combine_hashes, get_hasher, }; pub use native::{ - locked_write, shared_make_mut, shared_take, shared_take_or_clone, shared_try_take, FnAny, - FnPlugin, IteratorFn, Locked, NativeCallContext, SendSync, Shared, + locked_read, locked_write, shared_make_mut, shared_take, shared_take_or_clone, shared_try_take, + FnAny, FnPlugin, IteratorFn, Locked, NativeCallContext, SendSync, Shared, }; pub use plugin::PluginFunction; pub use register::RegisterNativeFunction; diff --git a/src/module/resolvers/file.rs b/src/module/resolvers/file.rs index 5b6f232a..7d61aa18 100644 --- a/src/module/resolvers/file.rs +++ b/src/module/resolvers/file.rs @@ -2,7 +2,7 @@ #![cfg(not(target_family = "wasm"))] use crate::eval::GlobalRuntimeState; -use crate::func::native::{locked_read, locked_write}; +use crate::func::{locked_read, locked_write}; use crate::{ Engine, Identifier, Module, ModuleResolver, Position, RhaiResultOf, Scope, Shared, ERR, };