mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove some useless argument mutability
I wonder why this doesn't trigger a warning.
This commit is contained in:
parent
e61c7b757f
commit
f726f18291
1 changed files with 2 additions and 2 deletions
|
@ -3450,7 +3450,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
border: i32,
|
||||
format: u32,
|
||||
data_type: u32,
|
||||
mut pixels: CustomAutoRooterGuard<Option<ArrayBufferView>>,
|
||||
pixels: CustomAutoRooterGuard<Option<ArrayBufferView>>,
|
||||
) -> ErrorResult {
|
||||
if !self.extension_manager.is_tex_type_enabled(data_type) {
|
||||
return Ok(self.webgl_error(InvalidEnum));
|
||||
|
@ -3488,7 +3488,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
// initialized to 0 is passed.
|
||||
let buff = match *pixels {
|
||||
None => vec![0u8; expected_byte_length as usize],
|
||||
Some(ref mut data) => data.to_vec(),
|
||||
Some(ref data) => data.to_vec(),
|
||||
};
|
||||
|
||||
// From the WebGL spec:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue