summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index 361aad2ec..5be64e117 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -570,7 +570,8 @@ impl CliMainWorkerFactory {
// TODO(bartlomieju): this is cruft, update FeatureChecker to spit out
// list of enabled features.
let feature_checker = shared.feature_checker.clone();
- let mut unstable_features = Vec::with_capacity(8);
+ 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);
@@ -768,7 +769,8 @@ fn create_web_worker_callback(
// TODO(bartlomieju): this is cruft, update FeatureChecker to spit out
// list of enabled features.
let feature_checker = shared.feature_checker.clone();
- let mut unstable_features = Vec::with_capacity(8);
+ 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);