Remove uses of mem::uninitialized

This commit is contained in:
Simon Sapin 2019-07-06 23:07:45 +02:00
parent 0677704953
commit b6bd2d7302
4 changed files with 68 additions and 65 deletions

View file

@ -21,7 +21,7 @@ use dom_struct::dom_struct;
use mozangle::shaders::{BuiltInResources, Output, ShaderValidator};
use std::cell::Cell;
use std::os::raw::c_int;
use std::sync::{Once, ONCE_INIT};
use std::sync::Once;
#[derive(Clone, Copy, Debug, JSTraceable, MallocSizeOf, PartialEq)]
pub enum ShaderCompilationStatus {
@ -42,7 +42,7 @@ pub struct WebGLShader {
compilation_status: Cell<ShaderCompilationStatus>,
}
static GLSLANG_INITIALIZATION: Once = ONCE_INIT;
static GLSLANG_INITIALIZATION: Once = Once::new();
impl WebGLShader {
fn new_inherited(context: &WebGLRenderingContext, id: WebGLShaderId, shader_type: u32) -> Self {