Remove once_cell dependency (#31493)
removing once_cell dep imported from #31439 it should work just fine Release Notes: - N/A
This commit is contained in:
parent
3ff62ef289
commit
ee6ce78fed
3 changed files with 3 additions and 5 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -684,7 +684,6 @@ dependencies = [
|
||||||
"language_models",
|
"language_models",
|
||||||
"log",
|
"log",
|
||||||
"markdown",
|
"markdown",
|
||||||
"once_cell",
|
|
||||||
"open",
|
"open",
|
||||||
"paths",
|
"paths",
|
||||||
"portable-pty",
|
"portable-pty",
|
||||||
|
|
|
@ -62,7 +62,6 @@ which.workspace = true
|
||||||
workspace-hack.workspace = true
|
workspace-hack.workspace = true
|
||||||
workspace.workspace = true
|
workspace.workspace = true
|
||||||
zed_llm_client.workspace = true
|
zed_llm_client.workspace = true
|
||||||
once_cell = "1.21.3"
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
client = { workspace = true, features = ["test-support"] }
|
client = { workspace = true, features = ["test-support"] }
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
use once_cell::sync::Lazy;
|
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
use smallvec::SmallVec;
|
use smallvec::SmallVec;
|
||||||
|
use std::cell::LazyCell;
|
||||||
use util::debug_panic;
|
use util::debug_panic;
|
||||||
|
|
||||||
const START_MARKER: Lazy<Regex> = Lazy::new(|| Regex::new(r"\n?```\S*\n").unwrap());
|
const START_MARKER: LazyCell<Regex> = LazyCell::new(|| Regex::new(r"\n?```\S*\n").unwrap());
|
||||||
const END_MARKER: Lazy<Regex> = Lazy::new(|| Regex::new(r"\n```\s*$").unwrap());
|
const END_MARKER: LazyCell<Regex> = LazyCell::new(|| Regex::new(r"\n```\s*$").unwrap());
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum CreateFileParserEvent {
|
pub enum CreateFileParserEvent {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue