Cargo.lock 🔗
@@ -684,7 +684,6 @@ dependencies = [
"language_models",
"log",
"markdown",
- "once_cell",
"open",
"paths",
"portable-pty",
shenjack created
removing once_cell dep imported from #31439
it should work just fine
Release Notes:
- N/A
Cargo.lock | 1 -
crates/assistant_tools/Cargo.toml | 1 -
crates/assistant_tools/src/edit_agent/create_file_parser.rs | 6 +++---
3 files changed, 3 insertions(+), 5 deletions(-)
@@ -684,7 +684,6 @@ dependencies = [
"language_models",
"log",
"markdown",
- "once_cell",
"open",
"paths",
"portable-pty",
@@ -62,7 +62,6 @@ which.workspace = true
workspace-hack.workspace = true
workspace.workspace = true
zed_llm_client.workspace = true
-once_cell = "1.21.3"
[dev-dependencies]
client = { workspace = true, features = ["test-support"] }
@@ -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 {