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

Commit b7c2f5c

Browse files
committed
Bump serde to 0.7
1 parent 6f9c47c commit b7c2f5c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ name = "core-graphics"
33
description = "Bindings to Core Graphics for OS X"
44
homepage = "https://github.com/servo/core-graphics-rs"
55
repository = "https://github.com/servo/core-graphics-rs"
6-
version = "0.2.1"
6+
version = "0.3.0"
77
authors = ["The Servo Project Developers"]
88
license = "MIT / Apache-2.0"
99

1010
[dependencies]
1111
libc = "0.2"
1212
core-foundation = "0.2"
13-
serde = "0.6"
14-
13+
serde = "0.7"

src/font.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl Deserialize for CGFont {
4242
fn deserialize<D>(deserializer: &mut D) -> Result<Self, D::Error> where D: Deserializer {
4343
let postscript_name: String = try!(Deserialize::deserialize(deserializer));
4444
CGFont::from_name(&CFString::new(&*postscript_name)).map_err(|err| {
45-
de::Error::syntax("Couldn't find a font with that PostScript name!")
45+
de::Error::invalid_value("Couldn't find a font with that PostScript name!")
4646
})
4747
}
4848
}

0 commit comments

Comments
 (0)