aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgpu/gpuuncapturederrorevent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webgpu/gpuuncapturederrorevent.rs')
-rw-r--r--components/script/dom/webgpu/gpuuncapturederrorevent.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/webgpu/gpuuncapturederrorevent.rs b/components/script/dom/webgpu/gpuuncapturederrorevent.rs
index 2e53e62bbd4..bae6948bce3 100644
--- a/components/script/dom/webgpu/gpuuncapturederrorevent.rs
+++ b/components/script/dom/webgpu/gpuuncapturederrorevent.rs
@@ -19,7 +19,7 @@ use crate::dom::webgpu::gpuerror::GPUError;
use crate::script_runtime::CanGc;
#[dom_struct]
-pub struct GPUUncapturedErrorEvent {
+pub(crate) struct GPUUncapturedErrorEvent {
event: Event,
#[ignore_malloc_size_of = "Because it is non-owning"]
gpu_error: Dom<GPUError>,
@@ -33,7 +33,7 @@ impl GPUUncapturedErrorEvent {
}
}
- pub fn new(
+ pub(crate) fn new(
global: &GlobalScope,
type_: DOMString,
init: &GPUUncapturedErrorEventInit,
@@ -63,7 +63,7 @@ impl GPUUncapturedErrorEvent {
ev
}
- pub fn event(&self) -> &Event {
+ pub(crate) fn event(&self) -> &Event {
&self.event
}
}