diff options
Diffstat (limited to 'ext/broadcast_channel/lib.rs')
-rw-r--r-- | ext/broadcast_channel/lib.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/broadcast_channel/lib.rs b/ext/broadcast_channel/lib.rs index 437580971..47c48656d 100644 --- a/ext/broadcast_channel/lib.rs +++ b/ext/broadcast_channel/lib.rs @@ -50,12 +50,9 @@ pub fn op_broadcast_subscribe<BC>( where BC: BroadcastChannel + 'static, { - // TODO(bartlomieju): replace with `state.feature_checker.check_or_exit` - // once we phase out `check_or_exit_with_legacy_fallback` - state.feature_checker.check_or_exit_with_legacy_fallback( - UNSTABLE_FEATURE_NAME, - "BroadcastChannel", - ); + state + .feature_checker + .check_or_exit(UNSTABLE_FEATURE_NAME, "BroadcastChannel"); let bc = state.borrow::<BC>(); let resource = bc.subscribe()?; Ok(state.resource_table.add(resource)) |