fix(nvim): remove unused mut variables
This commit is contained in:
1 parent
e5d4002b38
commit
14db90acbf
2 files changed
+2
-2
No files matched your search
@@ -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);
|
||||||
|
|||||||
@@ -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()
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user