diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-01-27 14:03:18 -0600 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-01-28 21:48:07 -0600 |
commit | fc67878edf93125eb32b245dcaf177c61c47a033 (patch) | |
tree | 2d83c6b68419a6ddf2fa6b94efcf506fe05ceb8f /components/script/dom/imagedata.rs | |
parent | ec12b7665b5cf35b13932a7c17901ffb8e73b5ee (diff) | |
download | servo-fc67878edf93125eb32b245dcaf177c61c47a033.tar.gz servo-fc67878edf93125eb32b245dcaf177c61c47a033.zip |
Remove warnings about unnecessary mutability.
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 4cc6f3fa235..6edf2e309b2 100644 --- a/components/script/dom/imagedata.rs +++ b/components/script/dom/imagedata.rs @@ -27,7 +27,7 @@ pub struct ImageData { impl ImageData { #[allow(unsafe_code)] pub fn new(global: &GlobalScope, width: u32, height: u32, data: Option<Vec<u8>>) -> Root<ImageData> { - let mut imagedata = box ImageData { + let imagedata = box ImageData { reflector_: Reflector::new(), width: width, height: height, |