File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " cssparser"
4
- version = " 0.7.4 "
4
+ version = " 0.8.0 "
5
5
authors = [ " Simon Sapin <simon.sapin@exyr.org>" ]
6
6
7
7
description = " Rust implementation of CSS Syntax Level 3"
@@ -20,16 +20,14 @@ tempdir = "0.3"
20
20
21
21
[dependencies ]
22
22
encoding = " 0.2"
23
- heapsize = {version = " >=0.1.1, <0.4.0 " , optional = true }
23
+ heapsize = {version = " 0.3 " , optional = true }
24
24
matches = " 0.1"
25
- serde = {version = " >=0.6.6, < 0.9" , optional = true }
25
+ serde = {version = " 0.9" , optional = true }
26
26
27
27
[build-dependencies ]
28
28
syn = { version = " 0.10.6" , features = [" full" , " visit" ]}
29
29
quote = " 0.3"
30
30
31
31
[features ]
32
- serde-serialization = [ " serde" ]
33
- heap_size = [ " heapsize" ]
34
32
bench = []
35
33
dummy_match_byte = []
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pub struct RGBA {
24
24
25
25
#[ cfg( feature = "serde" ) ]
26
26
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 >
28
28
where S : Serializer
29
29
{
30
30
( self . red , self . green , self . blue , self . alpha ) . serialize ( serializer)
@@ -33,7 +33,7 @@ impl Serialize for RGBA {
33
33
34
34
#[ cfg( feature = "serde" ) ]
35
35
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 >
37
37
where D : Deserializer
38
38
{
39
39
let ( red, green, blue, alpha) =
You can’t perform that action at this time.
0 commit comments