Remove warnings about unnecessary mutability.

This commit is contained in:
Alan Jeffrey 2017-01-27 14:03:18 -06:00
parent ec12b7665b
commit fc67878edf
7 changed files with 9 additions and 13 deletions

View file

@ -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,