summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
authorHasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com>2024-08-27 14:45:27 +0300
committerGitHub <noreply@github.com>2024-08-27 13:45:27 +0200
commit672ce3041a3dd9e2a6aab5f0ef79ec2be9cf1cba (patch)
tree4ae58965c192806280c7c9711d5764a6377db0df /cli/worker.rs
parent7e68cce8159d55fd597f0da3e00f794200b9928f (diff)
fix: removed unstable-htttp from deno help (#25216)
Closes #25210 . Removed --unstable-http from being displayed on deno run --help=unstable --------- Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index 09aa1aec4..31a88ae4e 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -573,9 +573,9 @@ impl CliMainWorkerFactory {
let feature_checker = shared.feature_checker.clone();
let mut unstable_features =
Vec::with_capacity(crate::UNSTABLE_GRANULAR_FLAGS.len());
- for (feature_name, _, id) in crate::UNSTABLE_GRANULAR_FLAGS {
- if feature_checker.check(feature_name) {
- unstable_features.push(*id);
+ for granular_flag in crate::UNSTABLE_GRANULAR_FLAGS {
+ if feature_checker.check(granular_flag.name) {
+ unstable_features.push(granular_flag.id);
}
}
@@ -771,9 +771,9 @@ fn create_web_worker_callback(
let feature_checker = shared.feature_checker.clone();
let mut unstable_features =
Vec::with_capacity(crate::UNSTABLE_GRANULAR_FLAGS.len());
- for (feature_name, _, id) in crate::UNSTABLE_GRANULAR_FLAGS {
- if feature_checker.check(feature_name) {
- unstable_features.push(*id);
+ for granular_flag in crate::UNSTABLE_GRANULAR_FLAGS {
+ if feature_checker.check(granular_flag.name) {
+ unstable_features.push(granular_flag.id);
}
}