File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ use std::slice;
7
7
use std:: vec;
8
8
9
9
10
- #[ deriving( PartialEq ) ]
10
+ #[ deriving( PartialEq , Show ) ]
11
11
pub struct NumericValue {
12
12
pub representation : String ,
13
13
pub value : f64 ,
14
14
pub int_value : Option < i64 > ,
15
15
}
16
16
17
17
18
- #[ deriving( PartialEq ) ]
18
+ #[ deriving( PartialEq , Show ) ]
19
19
pub struct SourceLocation {
20
20
pub line : uint , // First line is 1
21
21
pub column : uint , // First character of a line is at column 1
@@ -25,7 +25,7 @@ pub struct SourceLocation {
25
25
pub type Node = ( ComponentValue , SourceLocation ) ; // TODO this is not a good name
26
26
27
27
28
- #[ deriving( PartialEq ) ]
28
+ #[ deriving( PartialEq , Show ) ]
29
29
pub enum ComponentValue {
30
30
// Preserved tokens.
31
31
Ident ( String ) ,
@@ -70,7 +70,7 @@ pub enum ComponentValue {
70
70
71
71
72
72
impl ComponentValue {
73
- pub fn to_css ( & mut self ) -> String {
73
+ pub fn to_css ( & self ) -> String {
74
74
let mut css = String :: new ( ) ;
75
75
self . to_css_push ( & mut css) ;
76
76
css
You can’t perform that action at this time.
0 commit comments