Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): remove once_cell crate #4409

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion xtask/coverage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ biome_rowan = { workspace = true }
biome_string_case = { workspace = true }
colored = "2.1.0"
indicatif = { version = "0.17.8", features = ["improved_unicode"] }
once_cell = "1.20.0"
pico-args = { version = "0.5.0", features = ["eq-separator"] }
regex = { workspace = true }
serde = { workspace = true, features = ["derive"] }
Expand Down
12 changes: 4 additions & 8 deletions xtask/coverage/src/js/test262.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,11 @@ impl TestSuite for Test262TestSuite {
}

fn read_metadata(code: &str) -> io::Result<MetaData> {
use once_cell::sync::Lazy;
// Regular expression to retrieve the metadata of a test.
let meta_regex = Regex::new(r"/\*\-{3}((?:.|\n)*)\-{3}\*/")
.expect("could not compile metadata regular expression");

/// Regular expression to retrieve the metadata of a test.
static META_REGEX: Lazy<Regex> = Lazy::new(|| {
Regex::new(r"/\*\-{3}((?:.|\n)*)\-{3}\*/")
.expect("could not compile metadata regular expression")
});

let yaml = META_REGEX
let yaml = meta_regex
.captures(code)
.ok_or_else(|| io::Error::new(io::ErrorKind::InvalidData, "no metadata found"))?
.get(1)
Expand Down
Loading