mirror of
https://github.com/lune-org/lune.git
synced 2025-04-04 10:30:54 +01:00
make RequireContext::init public only to crate
This commit is contained in:
parent
a7f9c5f4f9
commit
9279b92a1b
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ impl RequireContext {
|
|||
- when `RequireContext::init` is called more than once on the same `Lua` instance
|
||||
|
||||
*/
|
||||
pub fn init(lua: &Lua) -> Result<(), RequireError> {
|
||||
pub(crate) fn init(lua: &Lua) -> Result<(), RequireError> {
|
||||
if lua.set_app_data(RequireContextData::default()).is_some() {
|
||||
Err(RequireError::RequireContextInitCalledTwice)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue