diff options
author | Josh Matthews <josh@joshmatthews.net> | 2018-08-07 20:24:55 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2018-08-07 20:24:55 -0400 |
commit | 7c32ad7c3d13f1e44b05beab937549ba18b48584 (patch) | |
tree | 2170914966749ed39f0b2b15f91b1dcfd2df4226 /components/script/dom/imagedata.rs | |
parent | d1733aa5029c5b97390a236d94eed916ddb64577 (diff) | |
download | servo-7c32ad7c3d13f1e44b05beab937549ba18b48584.tar.gz servo-7c32ad7c3d13f1e44b05beab937549ba18b48584.zip |
Revert "Fix the build for NLL"
This reverts commit d1733aa5029c5b97390a236d94eed916ddb64577.
Diffstat (limited to 'components/script/dom/imagedata.rs')
-rw-r--r-- | components/script/dom/imagedata.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/imagedata.rs b/components/script/dom/imagedata.rs index e80914d8aea..9e80d86d089 100644 --- a/components/script/dom/imagedata.rs +++ b/components/script/dom/imagedata.rs @@ -65,7 +65,7 @@ impl ImageData { if let Some(jsobject) = opt_jsobject { let cx = global.get_cx(); typedarray!(in(cx) let array_res: Uint8ClampedArray = jsobject); - let array = array_res + let mut array = array_res .map_err(|_| Error::Type("Argument to Image data is not an Uint8ClampedArray".to_owned()))?; let byte_len = array.as_slice().len() as u32; |