mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove warnings about unnecessary mutability.
This commit is contained in:
parent
ec12b7665b
commit
fc67878edf
7 changed files with 9 additions and 13 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue