Skip to content

Commit f652e4e

Browse files
committed
Update serde to 0.9.0
1 parent 373466e commit f652e4e

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.4"
4+
version = "0.8.0"
55
authors = [ "Simon Sapin <[email protected]>" ]
66

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

2121
[dependencies]
2222
encoding = "0.2"
23-
heapsize = {version = ">=0.1.1, <0.4.0", optional = true}
23+
heapsize = {version = "0.3", optional = true}
2424
matches = "0.1"
25-
serde = {version = ">=0.6.6, <0.9", optional = true}
25+
serde = {version = "0.9", optional = true}
2626

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

3131
[features]
32-
serde-serialization = [ "serde" ]
33-
heap_size = [ "heapsize" ]
3432
bench = []
3533
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)