Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove once_cell dependency (#31493)
shenjackee6ce78fed34
diff --git a/Cargo.lock b/Cargo.lockindex 1b95610d5db..5ffe87651a2 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -684,7 +684,6 @@ dependencies = ["language_models","log","markdown",- "once_cell","open","paths","portable-pty",diff --git a/crates/assistant_tools/Cargo.toml b/crates/assistant_tools/Cargo.tomlindex 9ee664afd8c..6d6baf2d54e 100644--- a/crates/assistant_tools/Cargo.toml+++ b/crates/assistant_tools/Cargo.toml@@ -62,7 +62,6 @@ which.workspace = trueworkspace-hack.workspace = trueworkspace.workspace = truezed_llm_client.workspace = true-once_cell = "1.21.3"[dev-dependencies]client = { workspace = true, features = ["test-support"] }diff --git a/crates/assistant_tools/src/edit_agent/create_file_parser.rs b/crates/assistant_tools/src/edit_agent/create_file_parser.rsindex 911746e9226..4f416a1fc66 100644--- a/crates/assistant_tools/src/edit_agent/create_file_parser.rs+++ b/crates/assistant_tools/src/edit_agent/create_file_parser.rs@@ -1,10 +1,10 @@-use once_cell::sync::Lazy;use regex::Regex;use smallvec::SmallVec;+use std::cell::LazyCell;use util::debug_panic;-const START_MARKER: Lazy<Regex> = Lazy::new(|| Regex::new(r"\n?```\S*\n").unwrap());-const END_MARKER: Lazy<Regex> = Lazy::new(|| Regex::new(r"\n```\s*$").unwrap());+const START_MARKER: LazyCell<Regex> = LazyCell::new(|| Regex::new(r"\n?```\S*\n").unwrap());+const END_MARKER: LazyCell<Regex> = LazyCell::new(|| Regex::new(r"\n```\s*$").unwrap());#[derive(Debug)]pub enum CreateFileParserEvent {