diff --git a/Cargo.toml b/Cargo.toml index 19ee79d..302dfcf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,12 +3,11 @@ name = "core-graphics" description = "Bindings to Core Graphics for OS X" homepage = "https://github.com/servo/core-graphics-rs" repository = "https://github.com/servo/core-graphics-rs" -version = "0.2.1" +version = "0.3.0" authors = ["The Servo Project Developers"] license = "MIT / Apache-2.0" [dependencies] libc = "0.2" core-foundation = "0.2" -serde = "0.6" - +serde = "0.7" diff --git a/src/font.rs b/src/font.rs index 0cb89fc..0ed20c5 100644 --- a/src/font.rs +++ b/src/font.rs @@ -42,7 +42,7 @@ impl Deserialize for CGFont { fn deserialize(deserializer: &mut D) -> Result where D: Deserializer { let postscript_name: String = try!(Deserialize::deserialize(deserializer)); CGFont::from_name(&CFString::new(&*postscript_name)).map_err(|err| { - de::Error::syntax("Couldn't find a font with that PostScript name!") + de::Error::invalid_value("Couldn't find a font with that PostScript name!") }) } }