Don't need pub on internal function

This commit is contained in:
kyren 2017-06-05 01:51:48 -04:00
parent 1c0b1014ee
commit cb7c55f742
1 changed files with 5 additions and 5 deletions

View File

@ -76,11 +76,11 @@ pub unsafe fn error_guard<F, R>(state: *mut ffi::lua_State,
func(state)
}
pub unsafe fn cpcall<F>(state: *mut ffi::lua_State,
nargs: c_int,
nresults: c_int,
mut func: F)
-> LuaResult<()>
unsafe fn cpcall<F>(state: *mut ffi::lua_State,
nargs: c_int,
nresults: c_int,
mut func: F)
-> LuaResult<()>
where F: FnOnce(*mut ffi::lua_State) -> c_int
{
ffi::lua_pushcfunction(state, call_impl::<F>);