aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gputexture.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/gputexture.rs')
-rw-r--r--components/script/dom/gputexture.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/gputexture.rs b/components/script/dom/gputexture.rs
index 036c1a57307..be2d11bfc50 100644
--- a/components/script/dom/gputexture.rs
+++ b/components/script/dom/gputexture.rs
@@ -49,7 +49,7 @@ impl GPUTexture {
format: GPUTextureFormat,
texture_usage: u32,
valid: bool,
- ) -> GPUTexture {
+ ) -> Self {
Self {
reflector_: Reflector::new(),
texture,
@@ -78,7 +78,7 @@ impl GPUTexture {
format: GPUTextureFormat,
texture_usage: u32,
valid: bool,
- ) -> DomRoot<GPUTexture> {
+ ) -> DomRoot<Self> {
reflect_dom_object(
Box::new(GPUTexture::new_inherited(
texture,