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;
77use std:: vec;
88
99
10- #[ deriving( PartialEq ) ]
10+ #[ deriving( PartialEq , Show ) ]
1111pub struct NumericValue {
1212 pub representation : String ,
1313 pub value : f64 ,
1414 pub int_value : Option < i64 > ,
1515}
1616
1717
18- #[ deriving( PartialEq ) ]
18+ #[ deriving( PartialEq , Show ) ]
1919pub struct SourceLocation {
2020 pub line : uint , // First line is 1
2121 pub column : uint , // First character of a line is at column 1
@@ -25,7 +25,7 @@ pub struct SourceLocation {
2525pub type Node = ( ComponentValue , SourceLocation ) ; // TODO this is not a good name
2626
2727
28- #[ deriving( PartialEq ) ]
28+ #[ deriving( PartialEq , Show ) ]
2929pub enum ComponentValue {
3030 // Preserved tokens.
3131 Ident ( String ) ,
@@ -70,7 +70,7 @@ pub enum ComponentValue {
7070
7171
7272impl ComponentValue {
73- pub fn to_css ( & mut self ) -> String {
73+ pub fn to_css ( & self ) -> String {
7474 let mut css = String :: new ( ) ;
7575 self . to_css_push ( & mut css) ;
7676 css
You can’t perform that action at this time.
0 commit comments