rustfmt
This commit is contained in:
parent
3f929066c4
commit
b1d887ee3d
10
src/css.rs
10
src/css.rs
@ -98,8 +98,8 @@ impl Css {
|
|||||||
// this is how we print newlines between unrelated styles
|
// this is how we print newlines between unrelated styles
|
||||||
// it could probably be refactored
|
// it could probably be refactored
|
||||||
if !v.is_empty() {
|
if !v.is_empty() {
|
||||||
if let Toplevel::MultilineComment(..) = v[0] {}
|
if let Toplevel::MultilineComment(..) = v[0] {
|
||||||
else if is_first {
|
} else if is_first {
|
||||||
is_first = false;
|
is_first = false;
|
||||||
} else {
|
} else {
|
||||||
self.blocks.push(Toplevel::Newline);
|
self.blocks.push(Toplevel::Newline);
|
||||||
@ -133,8 +133,10 @@ impl Css {
|
|||||||
has_written = true;
|
has_written = true;
|
||||||
writeln!(buf, "{}", r)?;
|
writeln!(buf, "{}", r)?;
|
||||||
}
|
}
|
||||||
Toplevel::Newline => if has_written {
|
Toplevel::Newline => {
|
||||||
writeln!(buf)?
|
if has_written {
|
||||||
|
writeln!(buf)?
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user