Skip to content

Commit

Permalink
removed mut on imageBitmap
Browse files Browse the repository at this point in the history
  • Loading branch information
ramyananth committed Apr 24, 2020
1 parent c140a34 commit 9c3cbbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/script/dom/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ impl WindowMethods for Window {
p.reject_error(Error::InvalidState)
}

let mut imageBitmap = ImageBitmap::new(&global,0,0,Cell::new(true)).unwrap();
let imageBitmap = ImageBitmap::new(&global,0,0,Cell::new(true)).unwrap();
// global: &global,
// width: 0,
// height: 0,
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/workerglobalscope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ impl WorkerGlobalScopeMethods for WorkerGlobalScope {
p.reject_error(Error::InvalidState)
}

let mut imageBitmap = ImageBitmap::new(&global,0,0,Cell::new(true)).unwrap();
let imageBitmap = ImageBitmap::new(&global,0,0,Cell::new(true)).unwrap();
// global: &global,
// width: 0,
// height: 0,
Expand Down

0 comments on commit 9c3cbbe

Please sign in to comment.