File tree 2 files changed +5
-7
lines changed
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.9 .0"
4
+ version = " 0.10 .0"
5
5
authors = [ " Simon Sapin <simon.sapin@exyr.org>" ]
6
6
7
7
description = " Rust implementation of CSS Syntax Level 3"
@@ -23,16 +23,14 @@ tempdir = "0.3"
23
23
encoding_rs = " 0.3.2"
24
24
25
25
[dependencies ]
26
- heapsize = {version = " >=0.1.1, <0.4.0 " , optional = true }
26
+ heapsize = {version = " 0.3 " , optional = true }
27
27
matches = " 0.1"
28
- serde = {version = " >=0.6.6, < 0.9" , optional = true }
28
+ serde = {version = " 0.9" , optional = true }
29
29
30
30
[build-dependencies ]
31
31
syn = { version = " 0.10.6" , features = [" full" , " visit" ]}
32
32
quote = " 0.3"
33
33
34
34
[features ]
35
- serde-serialization = [ " serde" ]
36
- heap_size = [ " heapsize" ]
37
35
bench = []
38
36
dummy_match_byte = []
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ impl RGBA {
72
72
73
73
#[ cfg( feature = "serde" ) ]
74
74
impl Serialize for RGBA {
75
- fn serialize < S > ( & self , serializer : & mut S ) -> Result < ( ) , S :: Error >
75
+ fn serialize < S > ( & self , serializer : S ) -> Result < S :: Ok , S :: Error >
76
76
where S : Serializer
77
77
{
78
78
( self . red , self . green , self . blue , self . alpha ) . serialize ( serializer)
@@ -81,7 +81,7 @@ impl Serialize for RGBA {
81
81
82
82
#[ cfg( feature = "serde" ) ]
83
83
impl Deserialize for RGBA {
84
- fn deserialize < D > ( deserializer : & mut D ) -> Result < Self , D :: Error >
84
+ fn deserialize < D > ( deserializer : D ) -> Result < Self , D :: Error >
85
85
where D : Deserializer
86
86
{
87
87
let ( r, g, b, a) = try!( Deserialize :: deserialize ( deserializer) ) ;
You can’t perform that action at this time.
0 commit comments