make some functions private

This commit is contained in:
highflowey 2024-08-25 20:36:37 +03:30
parent ddcda9952f
commit 35f24228cc
2 changed files with 3 additions and 3 deletions

View file

@ -89,7 +89,7 @@ impl RequireContext {
Ok(multi) Ok(multi)
} }
pub(crate) async fn wait_for_pending<'lua>( async fn wait_for_pending<'lua>(
lua: &'lua Lua, lua: &'lua Lua,
path_abs: &'_ PathBuf, path_abs: &'_ PathBuf,
) -> Result<(), RequireError> { ) -> Result<(), RequireError> {
@ -111,7 +111,7 @@ impl RequireContext {
Ok(()) Ok(())
} }
pub(crate) async fn from_cache<'lua>( async fn from_cache<'lua>(
lua: &'lua Lua, lua: &'lua Lua,
path_abs: &'_ PathBuf, path_abs: &'_ PathBuf,
) -> Result<Option<LuaMultiValue<'lua>>, RequireError> { ) -> Result<Option<LuaMultiValue<'lua>>, RequireError> {

View file

@ -38,7 +38,7 @@ pub enum RequireError {
LuaError(#[from] mlua::Error), LuaError(#[from] mlua::Error),
} }
pub async fn lua_require(lua: &Lua, path: String) -> LuaResult<LuaMultiValue> { async fn lua_require(lua: &Lua, path: String) -> LuaResult<LuaMultiValue> {
let require_path_rel = PathBuf::from(path); let require_path_rel = PathBuf::from(path);
let require_alias = path_to_alias(&require_path_rel).into_lua_err()?; let require_alias = path_to_alias(&require_path_rel).into_lua_err()?;