aboutsummaryrefslogtreecommitdiffstats
path: root/components/constellation
diff options
context:
space:
mode:
Diffstat (limited to 'components/constellation')
-rw-r--r--components/constellation/webview_manager.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/components/constellation/webview_manager.rs b/components/constellation/webview_manager.rs
index e5e427d40a1..7d6e98a54ea 100644
--- a/components/constellation/webview_manager.rs
+++ b/components/constellation/webview_manager.rs
@@ -81,18 +81,14 @@ impl<WebView> WebViewManager<WebView> {
#[cfg(test)]
mod test {
- use std::num::NonZeroU32;
-
- use base::id::{
- BrowsingContextId, BrowsingContextIndex, PipelineNamespace, PipelineNamespaceId, WebViewId,
- };
+ use base::id::{BrowsingContextId, Index, PipelineNamespace, PipelineNamespaceId, WebViewId};
use crate::webview_manager::WebViewManager;
fn id(namespace_id: u32, index: u32) -> WebViewId {
WebViewId(BrowsingContextId {
namespace_id: PipelineNamespaceId(namespace_id),
- index: BrowsingContextIndex(NonZeroU32::new(index).expect("Incorrect test case")),
+ index: Index::new(index).expect("Incorrect test case"),
})
}