File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -685,7 +685,7 @@ fn consume_numeric<'a>(tokenizer: &mut Tokenizer<'a>) -> Token<'a> {
685
685
if tokenizer. has_at_least ( 1 ) && tokenizer. next_char ( ) == '.'
686
686
&& matches ! ( tokenizer. char_at( 1 ) , '0' ...'9' ) {
687
687
is_integer = false ;
688
- tokenizer. advance ( 1 ) ; // '.' and first digit
688
+ tokenizer. advance ( 1 ) ; // Consume '.'
689
689
let mut divisor = 10. ;
690
690
while let Some ( digit) = tokenizer. next_char ( ) . to_digit ( 10 ) {
691
691
fractional_part += digit as f64 / divisor;
@@ -757,8 +757,7 @@ fn consume_numeric<'a>(tokenizer: &mut Tokenizer<'a>) -> Token<'a> {
757
757
} ;
758
758
if is_ident_start ( tokenizer) {
759
759
Dimension ( value, consume_name ( tokenizer) )
760
- }
761
- else {
760
+ } else {
762
761
Number ( value)
763
762
}
764
763
}
You can’t perform that action at this time.
0 commit comments