Remove useless asserts
This commit is contained in:
parent
d3620be4d8
commit
d930659ffe
@ -70,7 +70,6 @@ impl Css {
|
|||||||
fn parse_stmt(&mut self, stmt: Stmt) {
|
fn parse_stmt(&mut self, stmt: Stmt) {
|
||||||
match stmt {
|
match stmt {
|
||||||
Stmt::Style(s) => {
|
Stmt::Style(s) => {
|
||||||
assert!(self.idx >= 1);
|
|
||||||
if self.at_root {
|
if self.at_root {
|
||||||
self.blocks[self.idx - 1].push_style(s)
|
self.blocks[self.idx - 1].push_style(s)
|
||||||
} else {
|
} else {
|
||||||
@ -78,7 +77,6 @@ impl Css {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
Stmt::MultilineComment(s) => {
|
Stmt::MultilineComment(s) => {
|
||||||
assert!(self.idx >= 1);
|
|
||||||
if self.idx == 0 {
|
if self.idx == 0 {
|
||||||
self.blocks.push(Toplevel::MultilineComment(s));
|
self.blocks.push(Toplevel::MultilineComment(s));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user