mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
fix: omitted the let
bindings (#31908)
This commit is contained in:
parent
da76ebabe9
commit
ff95ce5abd
9 changed files with 20 additions and 26 deletions
|
@ -4154,8 +4154,7 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
|
|||
constants::UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES => unsafe {
|
||||
let values = values.iter().map(|&v| v as u32).collect::<Vec<_>>();
|
||||
rooted!(in(*cx) let mut result = ptr::null_mut::<JSObject>());
|
||||
let _ = Uint32Array::create(*cx, CreateWith::Slice(&values), result.handle_mut())
|
||||
.unwrap();
|
||||
Uint32Array::create(*cx, CreateWith::Slice(&values), result.handle_mut()).unwrap();
|
||||
ObjectValue(result.get())
|
||||
},
|
||||
constants::UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER |
|
||||
|
@ -4385,7 +4384,7 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
|
|||
));
|
||||
|
||||
rooted!(in(*cx) let mut rval = ptr::null_mut::<JSObject>());
|
||||
let _ = Int32Array::create(
|
||||
Int32Array::create(
|
||||
*cx,
|
||||
CreateWith::Slice(&receiver.recv().unwrap()),
|
||||
rval.handle_mut(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue