mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #7057 - fitzgen:unnecessary-mut-variables, r=jdm
Remove unnecessary `mut` on variables declared in ports/gonk/src/window.rs Fixes #7048. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7057) <!-- Reviewable:end -->
This commit is contained in:
commit
ec9f79067d
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue