From 672ce3041a3dd9e2a6aab5f0ef79ec2be9cf1cba Mon Sep 17 00:00:00 2001 From: HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> Date: Tue, 27 Aug 2024 14:45:27 +0300 Subject: fix: removed unstable-htttp from deno help (#25216) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #25210 . Removed --unstable-http from being displayed on deno run --help=unstable --------- Co-authored-by: Bartek IwaƄczuk --- runtime/ops/bootstrap.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/ops/bootstrap.rs') 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 { } 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 -- cgit v1.2.3