diff options
Diffstat (limited to 'components/script/dom/imagedata.rs')
-rw-r--r-- | components/script/dom/imagedata.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/imagedata.rs b/components/script/dom/imagedata.rs index 03224afd303..a7ee406e222 100644 --- a/components/script/dom/imagedata.rs +++ b/components/script/dom/imagedata.rs @@ -14,11 +14,11 @@ use js::rust::HandleObject; use js::typedarray::{ClampedU8, CreateWith, Uint8ClampedArray}; use super::bindings::buffer_source::{ - new_initialized_heap_buffer_source, BufferSource, HeapBufferSource, HeapTypedArrayInit, + BufferSource, HeapBufferSource, HeapTypedArrayInit, new_initialized_heap_buffer_source, }; use crate::dom::bindings::codegen::Bindings::CanvasRenderingContext2DBinding::ImageDataMethods; use crate::dom::bindings::error::{Error, Fallible}; -use crate::dom::bindings::reflector::{reflect_dom_object_with_proto, Reflector}; +use crate::dom::bindings::reflector::{Reflector, reflect_dom_object_with_proto}; use crate::dom::bindings::root::DomRoot; use crate::dom::globalscope::GlobalScope; use crate::script_runtime::{CanGc, JSContext}; @@ -78,7 +78,7 @@ impl ImageData { Err(_) => { return Err(Error::Type( "Argument to Image data is not an Uint8ClampedArray".to_owned(), - )) + )); }, }; |