Skip to content

Commit 8044fe4

Browse files
committed
Update serde to 0.9.0
1 parent f678a5c commit 8044fe4

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Cargo.toml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "cssparser"
4-
version = "0.7.3"
4+
version = "0.8.0"
55
authors = [ "Simon Sapin <[email protected]>" ]
66

77
description = "Rust implementation of CSS Syntax Level 3"
@@ -19,16 +19,14 @@ tempdir = "0.3"
1919

2020
[dependencies]
2121
encoding = "0.2"
22-
heapsize = {version = ">=0.1.1, <0.4.0", optional = true}
22+
heapsize = {version = "0.3", optional = true}
2323
matches = "0.1"
24-
serde = {version = ">=0.6.6, <0.9", optional = true}
24+
serde = {version = "0.9", optional = true}
2525

2626
[build-dependencies]
2727
syn = { version = "0.10.6", features = ["full", "visit"]}
2828
quote = "0.3"
2929

3030
[features]
31-
serde-serialization = [ "serde" ]
32-
heap_size = [ "heapsize" ]
3331
bench = []
3432
dummy_match_byte = []

src/color.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct RGBA {
2424

2525
#[cfg(feature = "serde")]
2626
impl Serialize for RGBA {
27-
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error>
27+
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
2828
where S: Serializer
2929
{
3030
(self.red, self.green, self.blue, self.alpha).serialize(serializer)
@@ -33,7 +33,7 @@ impl Serialize for RGBA {
3333

3434
#[cfg(feature = "serde")]
3535
impl Deserialize for RGBA {
36-
fn deserialize<D>(deserializer: &mut D) -> Result<Self, D::Error>
36+
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
3737
where D: Deserializer
3838
{
3939
let (red, green, blue, alpha) =

0 commit comments

Comments
 (0)