mirror of
https://github.com/lune-org/lune.git
synced 2025-04-10 21:40:54 +01:00
make some functions private
This commit is contained in:
parent
ddcda9952f
commit
35f24228cc
2 changed files with 3 additions and 3 deletions
|
@ -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> {
|
||||||
|
|
|
@ -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()?;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue