format fix, fixes rustfmt warning
This commit is contained in:
parent
d9478d6cd7
commit
6b8a4240e2
|
@ -237,8 +237,8 @@ pub unsafe fn handle_error(state: *mut ffi::lua_State, err: c_int) -> LuaResult<
|
||||||
Err(match err {
|
Err(match err {
|
||||||
ffi::LUA_ERRRUN => LuaError::RuntimeError(err_string),
|
ffi::LUA_ERRRUN => LuaError::RuntimeError(err_string),
|
||||||
ffi::LUA_ERRSYNTAX => {
|
ffi::LUA_ERRSYNTAX => {
|
||||||
// This seems terrible, but as far as I can tell, this is exactly what the stock lua
|
// This seems terrible, but as far as I can tell, this is exactly what the stock
|
||||||
// repl does.
|
// lua repl does.
|
||||||
if err_string.ends_with("<eof>") {
|
if err_string.ends_with("<eof>") {
|
||||||
LuaError::IncompleteStatement(err_string)
|
LuaError::IncompleteStatement(err_string)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue