make RequireContext::init public only to crate

This commit is contained in:
highflowey 2024-08-30 20:42:11 +03:30
parent a7f9c5f4f9
commit 9279b92a1b

View file

@ -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 {