summaryrefslogtreecommitdiff
path: root/src/lua.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua.rs')
-rw-r--r--src/lua.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lua.rs b/src/lua.rs
index d8bb215..06bc5a3 100644
--- a/src/lua.rs
+++ b/src/lua.rs
@@ -2845,11 +2845,10 @@ impl Lua {
LightUserData(&ASYNC_POLL_PENDING as *const u8 as *mut c_void)
})?;
- // We set `poll` variable in the env table to be able to destroy upvalues
self.load(
r#"
- poll = get_poll(...)
- local poll, pending, yield, unpack = poll, pending, yield, unpack
+ local poll = get_poll(...)
+ local pending, yield, unpack = pending, yield, unpack
while true do
local ready, res, nres = poll()
if ready then