style(clippy): auto-fix code style issues and unnecessary map_or allocations detected by cargo clippy

This commit is contained in:
Riz Ashraf committed 2026-09-27 22:38:08 +01:00
1 parent febd48c65d
commit 706e9ad172
9 files changed
+131 -74

No files matched your search

+5 -1
View File
@@ -8,7 +8,11 @@ pub static HEADLESS_PROC: LazyLock<Arc<std::sync::Mutex<Option<tokio::process::C
LazyLock::new(|| Arc::new(std::sync::Mutex::new(None)));
pub async fn spawn_headless_nvim() -> Result<String, String> {
if std::process::Command::new("nvim").arg("--version").output().is_err() {
if std::process::Command::new("nvim")
.arg("--version")
.output()
.is_err()
{
return Err("Error: Neovim is not installed or not in PATH. Cannot execute nvim tool. Fallback to basic terminal tools.".to_string());
}