Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

remove unused version regex

Kay Simmons035901127aba
diff --git a/crates/zed/src/languages/lua.rs b/crates/zed/src/languages/lua.rs
index 85a8a2f569d..4bcffca9084 100644
--- a/crates/zed/src/languages/lua.rs
+++ b/crates/zed/src/languages/lua.rs
@@ -7,8 +7,6 @@ use async_trait::async_trait;
use client::http::HttpClient;
use futures::{io::BufReader, StreamExt};
use language::LanguageServerName;
-use lazy_static::lazy_static;
-use regex::Regex;
use smol::fs;
use util::{async_iife, ResultExt};
@@ -17,10 +15,6 @@ use super::installation::{latest_github_release, GitHubLspBinaryVersion};
#[derive(Copy, Clone)]
pub struct LuaLspAdapter;
-lazy_static! {
- static ref LUALS_VERSION_REGEX: Regex = Regex::new(r"\d+\.\d+\.\d+").unwrap();
-}
-
#[async_trait]
impl super::LspAdapter for LuaLspAdapter {
async fn name(&self) -> LanguageServerName {