fix(nvim): remove unused mut variables

This commit is contained in:
Riz Ashraf committed 2026-09-23 05:00:35 +01:00
1 parent e5d4002b38
commit 14db90acbf
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ pub async fn spawn_headless_nvim() -> Result<String, String> {
tokio::time::sleep(tokio::time::Duration::from_millis(1000)).await; tokio::time::sleep(tokio::time::Duration::from_millis(1000)).await;
let mut old_child = { let old_child = {
let mut lock = HEADLESS_PROC.lock().unwrap_or_else(|e| e.into_inner()); let mut lock = HEADLESS_PROC.lock().unwrap_or_else(|e| e.into_inner());
let old = lock.take(); let old = lock.take();
*lock = Some(child); *lock = Some(child);
+1 -1
View File
@@ -194,7 +194,7 @@ async fn get_nvim_connection() -> Result<mpsc::Sender<NvimRequest>, String> {
} }
if should_kill_headless { if should_kill_headless {
let mut child_to_kill = { let child_to_kill = {
let mut proc_lock = HEADLESS_PROC.lock().unwrap_or_else(|e| e.into_inner()); let mut proc_lock = HEADLESS_PROC.lock().unwrap_or_else(|e| e.into_inner());
proc_lock.take() proc_lock.take()
}; };