diff --git a/Cargo.toml b/Cargo.toml index b6fa359..bb71397 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "offscreen_gl_context" license = "MIT / Apache-2.0" -version = "0.9.0" +version = "0.10.0" authors = ["Emilio Cobos Álvarez ", "The Servo Project Developers"] description = "Creation and manipulation of HW accelerated offscreen rendering contexts in multiple platforms. Originally intended for the Servo project's WebGL implementation." repository = "https://github.com/emilio/rust-offscreen-rendering-context" @@ -20,7 +20,7 @@ test_egl_in_linux = ["libloading", "lazy_static"] log = "0.3" gleam = "0.4" euclid = "0.14" -serde = { version = "0.9", optional = true } +serde = { version = "1.0", optional = true } osmesa-sys = { version = "0.1", optional = true } libloading = { version = "0.4", optional = true, default-features = false } lazy_static = { version = "0.2", optional = true } diff --git a/src/gl_context_attributes.rs b/src/gl_context_attributes.rs index 0d855bd..9779be4 100644 --- a/src/gl_context_attributes.rs +++ b/src/gl_context_attributes.rs @@ -14,9 +14,9 @@ pub struct GLContextAttributes { } #[cfg(feature = "serde")] -impl Deserialize for GLContextAttributes { +impl<'de> Deserialize<'de> for GLContextAttributes { fn deserialize(deserializer: D) -> Result - where D: Deserializer + where D: Deserializer<'de> { let values = try!(<[_; 6]>::deserialize(deserializer)); Ok(GLContextAttributes { diff --git a/src/gl_limits.rs b/src/gl_limits.rs index cf204f5..cff4c9a 100644 --- a/src/gl_limits.rs +++ b/src/gl_limits.rs @@ -11,9 +11,9 @@ pub struct GLLimits { } #[cfg(feature = "serde")] -impl Deserialize for GLLimits { +impl<'de> Deserialize<'de> for GLLimits { fn deserialize(deserializer: D) -> Result - where D: Deserializer + where D: Deserializer<'de> { let values = try!(<[_; 3]>::deserialize(deserializer)); Ok(GLLimits {