diff options
author | HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> | 2024-08-27 14:45:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-27 13:45:27 +0200 |
commit | 672ce3041a3dd9e2a6aab5f0ef79ec2be9cf1cba (patch) | |
tree | 4ae58965c192806280c7c9711d5764a6377db0df /runtime/ops | |
parent | 7e68cce8159d55fd597f0da3e00f794200b9928f (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 'runtime/ops')
-rw-r--r-- | runtime/ops/bootstrap.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/ops/bootstrap.rs b/runtime/ops/bootstrap.rs index 0d8c1dab8..a60544534 100644 --- a/runtime/ops/bootstrap.rs +++ b/runtime/ops/bootstrap.rs @@ -100,9 +100,9 @@ pub fn op_bootstrap_unstable_args(state: &mut OpState) -> Vec<String> { } let mut flags = Vec::new(); - for (name, _, id) in crate::UNSTABLE_GRANULAR_FLAGS.iter() { - if options.unstable_features.contains(id) { - flags.push(format!("--unstable-{}", name)); + for granular_flag in crate::UNSTABLE_GRANULAR_FLAGS.iter() { + if options.unstable_features.contains(&granular_flag.id) { + flags.push(format!("--unstable-{}", granular_flag.name)); } } flags |