Skip to content

Commit

Permalink
Remove unnecessary mut on variables declared in ports/gonk/src/wind…
Browse files Browse the repository at this point in the history
…ow.rs

Fixes #7048.
  • Loading branch information
fitzgen committed Aug 7, 2015
1 parent da06c2d commit 140c39b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/gonk/src/window.rs
Expand Up @@ -650,7 +650,7 @@ impl Window {
assert!(ret == 0, "Failed to get HWC module!");
}

let mut hwc_device: *mut hwc_composer_device;
let hwc_device: *mut hwc_composer_device;
unsafe {
let mut device = ptr::null();
let cstr = CString::new("composer").unwrap();
Expand All @@ -675,7 +675,7 @@ impl Window {
}

let mut gralloc_mod = ptr::null();
let mut alloc_dev: *mut alloc_device;
let alloc_dev: *mut alloc_device;
unsafe {
let mut device = ptr::null();
let cstr = CString::new("gralloc").unwrap();
Expand Down

0 comments on commit 140c39b

Please sign in to comment.