Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Bump serde to 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Mar 1, 2016
1 parent 6f9c47c commit b7c2f5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl Deserialize for CGFont {
fn deserialize<D>(deserializer: &mut D) -> Result<Self, D::Error> 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!")
})
}
}
Expand Down

0 comments on commit b7c2f5c

Please sign in to comment.