File tree Expand file tree Collapse file tree 4 files changed +2
-6
lines changed Expand file tree Collapse file tree 4 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use std:: ascii:: AsciiExt ;
6
6
use std:: fmt;
7
- use std:: num:: Float ;
8
7
9
8
use text_writer:: { self , TextWriter } ;
10
9
Original file line number Diff line number Diff line change 5
5
#![ crate_name = "cssparser" ]
6
6
#![ crate_type = "rlib" ]
7
7
8
- #![ feature( core) ]
9
8
#![ deny( missing_docs) ]
10
9
11
10
/*!
Original file line number Diff line number Diff line change 4
4
5
5
use std:: fmt;
6
6
use std:: cmp;
7
- use std:: num:: { Float , Int } ;
8
7
9
8
use text_writer:: { self , TextWriter } ;
10
9
@@ -49,11 +48,11 @@ pub trait ToCss {
49
48
fn write_numeric < W > ( value : NumericValue , dest : & mut W ) -> text_writer:: Result
50
49
where W : TextWriter {
51
50
// `value.value >= 0` is true for negative 0.
52
- if value. signed && value. value . is_positive ( ) {
51
+ if value. signed && value. value . is_sign_positive ( ) {
53
52
try!( dest. write_str ( "+" ) ) ;
54
53
}
55
54
56
- if value. value == 0.0 && value. value . is_negative ( ) {
55
+ if value. value == 0.0 && value. value . is_sign_negative ( ) {
57
56
// Negative zero. Work around #20596.
58
57
try!( dest. write_str ( "-0" ) )
59
58
} else {
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ use std::fs::File;
7
7
use std:: io:: { self , Write } ;
8
8
use std:: path:: Path ;
9
9
use std:: process:: Command ;
10
- use std:: num:: Float ;
11
10
use std:: mem;
12
11
use rustc_serialize:: json:: { self , Json , ToJson } ;
13
12
use tempdir:: TempDir ;
You can’t perform that action at this time.
0 commit comments