Skip to content

Commit 4882011

Browse files
committed
clippy
1 parent 304f31d commit 4882011

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/state.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,12 +1764,11 @@ impl Lua {
17641764
pub fn current_thread(&self) -> Thread {
17651765
let lua = self.lock();
17661766
let state = lua.state();
1767-
let extra = lua.extra.get();
17681767
unsafe {
17691768
// If this thread is implicit (created by `call_async`), return the root user-owned thread
17701769
// instead.
17711770
#[cfg(feature = "async")]
1772-
if let Some(&owner) = (*extra).thread_ownership_map.get(&state) {
1771+
if let Some(&owner) = (*lua.extra.get()).thread_ownership_map.get(&state) {
17731772
assert_stack(owner, 1);
17741773
ffi::lua_pushthread(owner);
17751774
ffi::lua_xmove(owner, lua.ref_thread(), 1);

0 commit comments

Comments
 (0)