From dd2b9e8729e10be44a3c20c630d8b0bcea73079b Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 13 Aug 2026 16:27:19 +0100 Subject: [PATCH] s/previous/previous_state/ --- rust/src/runtime.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/src/runtime.rs b/rust/src/runtime.rs index 7d6e329eec..0eeaf12e5b 100644 --- a/rust/src/runtime.rs +++ b/rust/src/runtime.rs @@ -93,11 +93,11 @@ impl RustRuntimeInner { .tokio .lock() .map_err(|_| PyRuntimeError::new_err("tokio runtime lock poisoned"))?; - let previous = std::mem::replace(&mut *state, TokioState::Shutdown); + let previous_state = std::mem::replace(&mut *state, TokioState::Shutdown); // Don't hold the lock while blocking on the shutdown below. drop(state); - if let TokioState::Running(runtime) = previous { + if let TokioState::Running(runtime) = previous_state { py.detach(|| runtime.shutdown_timeout(SHUTDOWN_TIMEOUT)); }