diff options
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/bindings/buffer_source.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/buffer_source.rs b/components/script/dom/bindings/buffer_source.rs index dd78186aee9..0549ed9041d 100644 --- a/components/script/dom/bindings/buffer_source.rs +++ b/components/script/dom/bindings/buffer_source.rs @@ -77,7 +77,7 @@ where let heap_buffer_source = match init { HeapTypedArrayInit::Buffer(buffer_source) => HeapBufferSource { buffer_source, - phantom: PhantomData::default(), + phantom: PhantomData, }, HeapTypedArrayInit::Info { len, cx } => { rooted!(in (*cx) let mut array = ptr::null_mut::<JSObject>()); @@ -125,7 +125,7 @@ where pub fn default() -> HeapBufferSource<T> { HeapBufferSource { buffer_source: BufferSource::Default(Box::new(Heap::default())), - phantom: PhantomData::default(), + phantom: PhantomData, } } @@ -436,7 +436,7 @@ where HeapBufferSource { buffer_source: BufferSource::ArrayBuffer(Heap::boxed(*array_buffer)), - phantom: PhantomData::default(), + phantom: PhantomData, } } } |